Bug 1425653 - Inspector should retain the width of its sidebar on reopen. r=mparkms

This commit is contained in:
Gabriel Luong 2017-12-21 16:16:32 -05:00
parent 925c23f412
commit f78fd8e78c

View File

@ -552,11 +552,8 @@ Inspector.prototype = {
let state = this.splitBox.state;
Services.prefs.setIntPref("devtools.toolsidebar-width.inspector", state.width);
Services.prefs.setIntPref("devtools.toolsidebar-height.inspector", state.height);
if (this.isSplitRuleViewEnabled) {
Services.prefs.setIntPref("devtools.toolsidebar-width.inspector.splitsidebar",
this.sidebarSplitBox.state.width);
}
Services.prefs.setIntPref("devtools.toolsidebar-width.inspector.splitsidebar",
this.sidebarSplitBox.state.width);
},
onSidebarResized: function (width, height) {