Skip to content

Commit

Permalink
Add horizontal scrollbar to long request headers as soon as they are
Browse files Browse the repository at this point in the history
displayed instead of their display being toggled (related to issue 6445)
  • Loading branch information
SebastianZ committed Feb 17, 2014
1 parent 9bd099e commit 5c7ef0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion extension/content/firebug/lib/dom.js
Expand Up @@ -543,7 +543,6 @@ Dom.getScrollBarWidth = function(doc)
doc.body.removeChild(outer);

scrollBarWidth = widthWithoutScrollbar - widthWithScrollbar;
FBTrace.sysout("scrollBarWidth "+scrollBarWidth);
return scrollBarWidth;
};

Expand Down
2 changes: 1 addition & 1 deletion extension/content/firebug/net/netPanel.js
Expand Up @@ -809,7 +809,7 @@ NetPanel.prototype = Obj.extend(ActivablePanel,
}
},

onToggleSourceView: function()
onHeadersDisplayed: function()
{
this.updateHeadersSourceWidth();
},
Expand Down
7 changes: 3 additions & 4 deletions extension/content/firebug/net/netReps.js
Expand Up @@ -1102,6 +1102,9 @@ Firebug.NetMonitor.NetInfoBody = domplate(Rep, new EventSource(),
}
}

// Notify listeners, so additional actions can be done when the headers are displayed
Events.dispatch(Firebug.NetMonitor.NetInfoBody.fbListeners, "onHeadersDisplayed", [this]);

if (Css.hasClass(tab, "netInfoPostTab"))
{
if (!netInfoBox.postPresented)
Expand Down Expand Up @@ -1724,10 +1727,6 @@ Firebug.NetMonitor.NetInfoHeaders = domplate(Rep, new EventSource(),

target.sourceDisplayed = !target.sourceDisplayed;

// Notify listeners, so additional actions can be done when source view was toggled
Events.dispatch(Firebug.NetMonitor.NetInfoBody.fbListeners, "onToggleSourceView",
[target.sourceDisplayed]);

This comment has been minimized.

Copy link
@simonlindholm

simonlindholm Feb 17, 2014

Member

No addons using this or so?

This comment has been minimized.

Copy link
@SebastianZ

SebastianZ Feb 17, 2014

Author Member

No, I just added it in the other commit.

Sebastian

Events.cancelEvent(event);
},

Expand Down

0 comments on commit 5c7ef0b

Please sign in to comment.