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

This commit is contained in:
Jan Odvarko 2016-07-20 10:08:19 +02:00
parent 5b25587f88
commit 9119ba5c03

View File

@ -1228,12 +1228,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 = () => {