Skip to content

Commit

Permalink
DevTools: fix computed style pane layout
Browse files Browse the repository at this point in the history
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}
  • Loading branch information
aslushnikov authored and Commit bot committed Jul 21, 2016
1 parent 02e7968 commit 5dc7504
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions front_end/elements/PlatformFontsWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ WebInspector.PlatformFontsWidget = function(sharedModel)
this._sharedModel.addEventListener(WebInspector.ComputedStyleModel.Events.ComputedStyleChanged, this.update, this);

this._sectionTitle = createElementWithClass("div", "title");
this.contentElement.classList.add("platform-fonts");
this.contentElement.appendChild(this._sectionTitle);
this._sectionTitle.textContent = WebInspector.UIString("Rendered Fonts");
this._fontStatsSection = this.contentElement.createChild("div", "stats-section");
Expand Down
1 change: 1 addition & 0 deletions front_end/elements/computedStyleSidebarPane.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

.computed-properties {
-webkit-user-select: text;
flex-shrink: 0;
}

.computed-style-property {
Expand Down
4 changes: 4 additions & 0 deletions front_end/elements/platformFontsWidget.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
-webkit-user-select: text;
}

.platform-fonts {
flex-shrink: 0;
}

.font-name {
font-weight: bold;
}
Expand Down

0 comments on commit 5dc7504

Please sign in to comment.