From db8544595c53245e2f77f6cb89a7829e1104b76e Mon Sep 17 00:00:00 2001
From: baletiballo <75846481+baletiballo@users.noreply.github.com>
Date: Mon, 31 Mar 2025 08:50:16 +0200
Subject: [PATCH] hopefully avoid creating a tiny scrollbar

---
 Runtime/WebViewComponent.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Runtime/WebViewComponent.cs b/Runtime/WebViewComponent.cs
index 5217987..1862a6e 100644
--- a/Runtime/WebViewComponent.cs
+++ b/Runtime/WebViewComponent.cs
@@ -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);
-- 
GitLab