Changeset 170991 in webkit


Ignore:
Timestamp:
Jul 10, 2014, 10:06:55 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Debugger Continue button is incorrectly sized
https://bugs.webkit.org/show_bug.cgi?id=134786

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-07-10
Reviewed by Timothy Hatcher.

Before this patch everything in the DebuggerDashboardView was flexing.
Normally, if the contents were not too wide, this would just behave
as expected and be centered. If the content was too wide, then each
element would flex uniformly and overlap uniformly. That was not expected.

This patch changes makes everything but the link have a non-flexible
size. If the link (at the end) flexs it will have a nice ellipsis
text truncation, and the rest of the content will be left justified.

This also fixes a few other minor issues seen in the view.

  • UserInterface/Views/DebuggerDashboardView.css:

(.dashboard.debugger .navigation-bar):
Reduce the complexity, give the nav bar (the resume button) some simple padding.

(.dashboard.debugger > div):
Make everything non-flex by default.

(.dashboard.debugger > .location):
The location will have an inner element flex, so make it flex.

(.dashboard.debugger > .location > *):
Make everything in .location non-flex by default.

(.dashboard.debugger > .location .go-to-link):
Make the link flex and truncate cleanly.

(.dashboard.debugger > .location .function-name):
Fix vertical alignment when the toolbar has small icons.

  • UserInterface/Views/DebuggerDashboardView.js:

(WebInspector.DebuggerDashboardView.prototype._rebuildLocation):
Fix class name spelling.

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r170937 r170991  
     12014-07-10  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Web Inspector: Debugger Continue button is incorrectly sized
     4        https://bugs.webkit.org/show_bug.cgi?id=134786
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Before this patch everything in the DebuggerDashboardView was flexing.
     9        Normally, if the contents were not too wide, this would just behave
     10        as expected and be centered. If the content was too wide, then each
     11        element would flex uniformly and overlap uniformly. That was not expected.
     12
     13        This patch changes makes everything but the link have a non-flexible
     14        size. If the link (at the end) flexs it will have a nice ellipsis
     15        text truncation, and the rest of the content will be left justified.
     16
     17        This also fixes a few other minor issues seen in the view.
     18
     19        * UserInterface/Views/DebuggerDashboardView.css:
     20        (.dashboard.debugger .navigation-bar):
     21        Reduce the complexity, give the nav bar (the resume button) some simple padding.
     22
     23        (.dashboard.debugger > div):
     24        Make everything non-flex by default.
     25
     26        (.dashboard.debugger > .location):
     27        The location will have an inner element flex, so make it flex.
     28
     29        (.dashboard.debugger > .location > *):
     30        Make everything in .location non-flex by default.
     31
     32        (.dashboard.debugger > .location .go-to-link):
     33        Make the link flex and truncate cleanly.
     34
     35        (.dashboard.debugger > .location .function-name):
     36        Fix vertical alignment when the toolbar has small icons.
     37
     38        * UserInterface/Views/DebuggerDashboardView.js:
     39        (WebInspector.DebuggerDashboardView.prototype._rebuildLocation):
     40        Fix class name spelling.
     41
    1422014-07-09  Brent Fulgham  <bfulgham@apple.com>
    243
  • trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerDashboardView.css

    r170240 r170991  
    4141.dashboard.debugger .navigation-bar {
    4242    border: 0;
    43     margin: 0 5px 0 -5px;
     43    margin-right: 4px;
    4444}
    4545
     
    8686    display: -webkit-flex;
    8787    -webkit-align-items: center;
     88    -webkit-flex: none;
     89}
     90
     91.dashboard.debugger > .location {
     92    -webkit-flex: initial;
     93}
     94
     95.dashboard.debugger > .location > * {
     96    -webkit-flex: none;
    8897}
    8998
     
    106115.dashboard.debugger > .location .function-name {
    107116    color: rgb(30, 30, 30);
     117    padding-bottom: 1px;
    108118}
    109119
     
    115125    padding-bottom: 1px;
    116126    -webkit-text-decoration-color: #aaa;
     127   
     128    -webkit-flex: initial;
     129    text-overflow: ellipsis;
     130    overflow: hidden;
    117131}
    118132
  • trunk/Source/WebInspectorUI/UserInterface/Views/DebuggerDashboardView.js

    r165383 r170991  
    6262WebInspector.DebuggerDashboardView.DividerStyleClassName = "divider";
    6363WebInspector.DebuggerDashboardView.LocationStyleClassName = "location";
    64 WebInspector.DebuggerDashboardView.FunctionNameStyleClassname = "function-name";
     64WebInspector.DebuggerDashboardView.FunctionNameStyleClassName = "function-name";
    6565
    6666WebInspector.DebuggerDashboardView.prototype = {
     
    9595        var nameElement = document.createElement("div");
    9696        nameElement.appendChild(document.createTextNode(functionName));
    97         nameElement.classList.add(WebInspector.DebuggerDashboardView.FunctionNameStyleClassname);
     97        nameElement.classList.add(WebInspector.DebuggerDashboardView.FunctionNameStyleClassName);
    9898        this._locationElement.appendChild(nameElement);
    9999
Note: See TracChangeset for help on using the changeset viewer.