Changeset 121981 in webkit
- Timestamp:
- Jul 6, 2012 9:54:04 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r121980 r121981 1 2012-07-06 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: text editor scrolls 2px horizontally as one navigates the source code. 4 https://bugs.webkit.org/show_bug.cgi?id=90682 5 6 Reviewed by Vsevolod Vlasov. 7 8 Removing the hack that is glueing the scroller to the left. 9 10 * inspector/front-end/TextEditor.js: 11 (WebInspector.TextEditor.prototype._updatePanelOffsets): 12 (WebInspector.TextEditorChunkedPanel.prototype._scroll): 13 * inspector/front-end/textEditor.css: 14 1 15 2012-07-06 Andrey Kosyakov <caseq@chromium.org> 2 16 -
trunk/Source/WebCore/inspector/front-end/TextEditor.js
r121957 r121981 253 253 var lineNumbersWidth = this._gutterPanel.element.offsetWidth; 254 254 if (lineNumbersWidth) 255 this._mainPanel.element.style.setProperty("left", lineNumbersWidth+ "px");255 this._mainPanel.element.style.setProperty("left", (lineNumbersWidth + 2) + "px"); 256 256 else 257 257 this._mainPanel.element.style.removeProperty("left"); // Use default value set in CSS. … … 655 655 _scroll: function() 656 656 { 657 // FIXME: Replace the "2" with the padding-left value from CSS.658 if (this.element.scrollLeft <= 2)659 this.element.scrollLeft = 0;660 661 657 this._scheduleRepaintAll(); 662 658 if (this._syncScrollListener) -
trunk/Source/WebCore/inspector/front-end/textEditor.css
r121746 r121981 122 122 } 123 123 124 .webkit-line-content {125 padding-left: 2px;126 }127 128 124 .webkit-breakpoint .webkit-line-number-outer { 129 125 color: white;
Note: See TracChangeset
for help on using the changeset viewer.