mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 1287413 - Avoid blank area in the Sidebar. r=pbro
--HG-- extra : rebase_source : 3d8bfc8200bbb722689ed80fb87a96e4886a56ed
This commit is contained in:
parent
6ceb664a74
commit
8b6f76bc43
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user