Web Inspector: Network's columns shake when scrolling at non-default zoom level
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / Table.js
index d0c8be2..86996af 100644 (file)
@@ -709,8 +709,8 @@ WI.Table = class Table extends WI.View
 
         if (isNaN(this._cachedWidth)) {
             let boundingClientRect = this._scrollContainerElement.getBoundingClientRect();
-            this._cachedWidth = boundingClientRect.width;
-            this._cachedHeight = boundingClientRect.height;
+            this._cachedWidth = Math.floor(boundingClientRect.width);
+            this._cachedHeight = Math.floor(boundingClientRect.height);
         }
 
         // Not visible yet.