Changeset 196207 in webkit
- Timestamp:
- Feb 5, 2016 5:15:13 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r196193 r196207 1 2016-02-05 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Web Inspector: Visual Styles sidebar should be more forgiving to long labels 4 https://bugs.webkit.org/show_bug.cgi?id=153927 5 <rdar://problem/24343897> 6 7 Reviewed by Timothy Hatcher. 8 9 If a label is too long for it's container, it overflows and is visible 10 above the rest of the elements nearby. 11 12 * UserInterface/Views/VisualStylePropertyEditor.css: 13 (.visual-style-property-container > .visual-style-property-title): 14 Adds text overflow to properties that extend beyond the container's width. 15 16 * UserInterface/Views/VisualStylePropertyEditor.js: 17 (WebInspector.VisualStylePropertyEditor): 18 Now also adds the label value as a title attribute to the element, just in 19 case the content overflows. 20 1 21 2016-02-05 Saam barati <sbarati@apple.com> 2 22 -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.css
r196146 r196207 33 33 margin: 4px; 34 34 text-align: right; 35 overflow: hidden; 36 text-overflow: ellipsis; 35 37 } 36 38 -
trunk/Source/WebInspectorUI/UserInterface/Views/VisualStylePropertyEditor.js
r196184 r196207 74 74 this._titleElement = titleContainer.createChild("span"); 75 75 this._titleElement.append(label); 76 this._titleElement.title = label; 76 77 this._titleElement.addEventListener("mouseover", this._titleElementMouseOver.bind(this)); 77 78 this._titleElement.addEventListener("mouseout", this._titleElementMouseOut.bind(this));
Note: See TracChangeset
for help on using the changeset viewer.