Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js

Issue 2207283002: DevTools: make sidebar section headers wider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js b/third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js
index 3f9e8395506dba7a169acaca185c83653b6db77a..41d618c58d4ab22fa27a099b24d24d15c73e3456 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/SplitWidget.js
@@ -477,8 +477,9 @@ WebInspector.SplitWidget.prototype = {
this._removeAllLayoutProperties();
// this._totalSizeDIP is available below since we successfully applied constraints.
- var sidebarSizeValue = WebInspector.zoomManager.dipToCSS(sizeDIP) + "px";
- var mainSizeValue = (this._totalSizeCSS - WebInspector.zoomManager.dipToCSS(sizeDIP)) + "px";
+ var roundSizeCSS = Math.round(WebInspector.zoomManager.dipToCSS(sizeDIP));
+ var sidebarSizeValue = roundSizeCSS + "px";
+ var mainSizeValue = (this._totalSizeCSS - roundSizeCSS) + "px";
this._sidebarElement.style.flexBasis = sidebarSizeValue;
// Make both sides relayout boundaries.

Powered by Google App Engine
This is Rietveld 408576698