mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
Bug 1287413 - Avoid blank area in the Sidebar. r=pbro
This commit is contained in:
parent
5b25587f88
commit
9119ba5c03
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user