Skip to content

Commit 44322ec

Browse files
committed
Fix inspector resizing
1 parent 6330b2a commit 44322ec

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Source/Sidebar/Sidebar.cpp

+9-8
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,6 @@ void Sidebar::resized()
181181

182182
auto dividerPos = getHeight() * (1.0f - dividerFactor);
183183

184-
browserPanel->setBounds(bounds);
185-
automationPanel->setBounds(bounds);
186-
searchPanel->setBounds(bounds);
187-
188-
// We need to give the inspector bounds to start with - even if it's not visible
189-
inspector->setBounds(bounds);
190-
consolePanel->setBounds(bounds);
191-
192184
if (inspector->isVisible()) {
193185
if (inspectorButton.isInspectorAuto()) {
194186
if (extraSettingsButton)
@@ -210,9 +202,18 @@ void Sidebar::resized()
210202
}
211203
}
212204
} else {
205+
// We need to give the inspector bounds to start with - even if it's not visible
206+
inspector->setBounds(bounds);
213207
if (resetInspectorButton)
214208
resetInspectorButton->setVisible(false);
215209
}
210+
211+
212+
browserPanel->setBounds(bounds);
213+
automationPanel->setBounds(bounds);
214+
searchPanel->setBounds(bounds);
215+
consolePanel->setBounds(bounds);
216+
216217
}
217218

218219
void Sidebar::mouseDown(MouseEvent const& e)

0 commit comments

Comments
 (0)