Bug 910085 - The netmonitor sidepane resize should redraw the waterfalls, r=vporof

This commit is contained in:
Andre Miranda 2013-08-28 00:55:48 -03:00
parent 36e4e9bba7
commit 44fc5f6d40
2 changed files with 5 additions and 1 deletions

View File

@ -260,6 +260,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
dumpn("Initializing the RequestsMenuView");
this.widget = new SideMenuWidget($("#requests-menu-contents"), false);
this._splitter = $('#splitter');
this._summary = $("#request-menu-network-summary");
this.allowFocusOnRightClick = true;
@ -267,6 +268,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
this.widget.autoscrollWithAppendedItems = true;
this.widget.addEventListener("select", this._onSelect, false);
this._splitter.addEventListener("mousemove", this._onResize, false);
window.addEventListener("resize", this._onResize, false);
},
@ -277,6 +279,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
dumpn("Destroying the SourcesView");
this.widget.removeEventListener("select", this._onSelect, false);
this._splitter.removeEventListener("mousemove", this._onResize, false);
window.removeEventListener("resize", this._onResize, false);
},
@ -1312,6 +1315,7 @@ RequestsMenuView.prototype = Heritage.extend(WidgetMethods, {
return this._cachedWaterfallWidth;
},
_splitter: null,
_summary: null,
_canvas: null,
_ctx: null,

View File

@ -210,7 +210,7 @@
</hbox>
</vbox>
<splitter class="devtools-side-splitter"/>
<splitter id="splitter" class="devtools-side-splitter"/>
<deck id="details-pane"
hidden="true">