Bug 1287413 - Avoid blank area in the Sidebar. r=pbro

--HG--
extra : rebase_source : 3d8bfc8200bbb722689ed80fb87a96e4886a56ed
This commit is contained in:
Jan Odvarko 2016-07-21 07:02:49 +02:00
parent 6ceb664a74
commit 8b6f76bc43

View File

@ -1229,8 +1229,6 @@ InspectorPanel.prototype = {
onPaneToggleButtonActivated: function (e) {
let sidePaneContainer = this.panelDoc.querySelector("#inspector-sidebar-container");
let isVisible = !this._sidebarToggle.state.collapsed;
let sidePane = this.panelDoc.querySelector(
"#inspector-sidebar .devtools-sidebar-tabs");
// Make sure the sidebar has width and height attributes before collapsing
// because ViewHelpers needs it.
@ -1238,12 +1236,10 @@ InspectorPanel.prototype = {
let rect = sidePaneContainer.getBoundingClientRect();
if (!sidePaneContainer.hasAttribute("width")) {
sidePaneContainer.setAttribute("width", rect.width);
sidePane.style.width = rect.width + "px";
}
// always refresh the height attribute before collapsing, it could have
// been modified by resizing the container.
sidePaneContainer.setAttribute("height", rect.height);
sidePane.style.height = rect.height + "px";
}
let onAnimationDone = () => {