mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 910085 - The netmonitor sidepane resize should redraw the waterfalls, r=vporof
This commit is contained in:
parent
36e4e9bba7
commit
44fc5f6d40
@ -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,
|
||||
|
@ -210,7 +210,7 @@
|
||||
</hbox>
|
||||
</vbox>
|
||||
|
||||
<splitter class="devtools-side-splitter"/>
|
||||
<splitter id="splitter" class="devtools-side-splitter"/>
|
||||
|
||||
<deck id="details-pane"
|
||||
hidden="true">
|
||||
|
Loading…
Reference in New Issue
Block a user