Changeset 121981 in webkit


Ignore:
Timestamp:
Jul 6, 2012 9:54:04 AM (12 years ago)
Author:
pfeldman@chromium.org
Message:

Web Inspector: text editor scrolls 2px horizontally as one navigates the source code.
https://bugs.webkit.org/show_bug.cgi?id=90682

Reviewed by Vsevolod Vlasov.

Removing the hack that is glueing the scroller to the left.

  • inspector/front-end/TextEditor.js:

(WebInspector.TextEditor.prototype._updatePanelOffsets):
(WebInspector.TextEditorChunkedPanel.prototype._scroll):

  • inspector/front-end/textEditor.css:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r121980 r121981  
     12012-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
    1152012-07-06  Andrey Kosyakov  <caseq@chromium.org>
    216
  • trunk/Source/WebCore/inspector/front-end/TextEditor.js

    r121957 r121981  
    253253        var lineNumbersWidth = this._gutterPanel.element.offsetWidth;
    254254        if (lineNumbersWidth)
    255             this._mainPanel.element.style.setProperty("left", lineNumbersWidth + "px");
     255            this._mainPanel.element.style.setProperty("left", (lineNumbersWidth + 2) + "px");
    256256        else
    257257            this._mainPanel.element.style.removeProperty("left"); // Use default value set in CSS.
     
    655655    _scroll: function()
    656656    {
    657         // FIXME: Replace the "2" with the padding-left value from CSS.
    658         if (this.element.scrollLeft <= 2)
    659             this.element.scrollLeft = 0;
    660 
    661657        this._scheduleRepaintAll();
    662658        if (this._syncScrollListener)
  • trunk/Source/WebCore/inspector/front-end/textEditor.css

    r121746 r121981  
    122122}
    123123
    124 .webkit-line-content {
    125     padding-left: 2px;
    126 }
    127 
    128124.webkit-breakpoint .webkit-line-number-outer {
    129125    color: white;
Note: See TracChangeset for help on using the changeset viewer.