Skip to content
Snippets Groups Projects
Commit db854459 authored by baletiballo's avatar baletiballo
Browse files

hopefully avoid creating a tiny scrollbar

parent 7aeeb0b0
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ namespace bessw.Unity.WebView
if (tab is not null)
{
var size = new Vector2(viewPort.rect.width, viewPort.rect.height) * scaler.scaleFactor;
Vector2Int sizeInt = Vector2Int.RoundToInt(size);
Vector2Int sizeInt = Vector2Int.FloorToInt(size);
if (tab.Size != sizeInt)
{
_ = tab.SetSize(sizeInt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment