Commit acb64bfd authored by lushnikov's avatar lushnikov Committed by Commit bot

DevTools: fix computed style pane layout

Both computed section and platform fonts should not be shrinkable.

BUG=none
TBR=pfeldman

Review-Url: https://codereview.chromium.org/2171653002
Cr-Commit-Position: refs/heads/master@{#406760}
parent efeac5ea
...@@ -42,6 +42,7 @@ WebInspector.PlatformFontsWidget = function(sharedModel) ...@@ -42,6 +42,7 @@ WebInspector.PlatformFontsWidget = function(sharedModel)
this._sharedModel.addEventListener(WebInspector.ComputedStyleModel.Events.ComputedStyleChanged, this.update, this); this._sharedModel.addEventListener(WebInspector.ComputedStyleModel.Events.ComputedStyleChanged, this.update, this);
this._sectionTitle = createElementWithClass("div", "title"); this._sectionTitle = createElementWithClass("div", "title");
this.contentElement.classList.add("platform-fonts");
this.contentElement.appendChild(this._sectionTitle); this.contentElement.appendChild(this._sectionTitle);
this._sectionTitle.textContent = WebInspector.UIString("Rendered Fonts"); this._sectionTitle.textContent = WebInspector.UIString("Rendered Fonts");
this._fontStatsSection = this.contentElement.createChild("div", "stats-section"); this._fontStatsSection = this.contentElement.createChild("div", "stats-section");
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
.computed-properties { .computed-properties {
-webkit-user-select: text; -webkit-user-select: text;
flex-shrink: 0;
} }
.computed-style-property { .computed-style-property {
......
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
-webkit-user-select: text; -webkit-user-select: text;
} }
.platform-fonts {
flex-shrink: 0;
}
.font-name { .font-name {
font-weight: bold; font-weight: bold;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment