put the controls panel in the corner and let it step around the build bar
This commit is contained in:
@@ -179,10 +179,11 @@ void MainWindow::layoutPanels()
|
||||
// move for it (REQ-UI-SELECTION-PANEL, REQ-UI-BUILD-BAR).
|
||||
m_selectionPanel->anchorTo(
|
||||
worldRect.adjusted(0, 0, 0, -m_buildButtonBar->getStripHeightPx()));
|
||||
// Same band, opposite edge: left and bottom-aligned, so it clears the bar's strip
|
||||
// too and never meets the selection panel (REQ-UI-CONTROLS-PANEL).
|
||||
m_controlsPanel->anchorTo(
|
||||
worldRect.adjusted(0, 0, 0, -m_buildButtonBar->getStripHeightPx()));
|
||||
// The opposite corner: bottom-left of the view, sharing the bottom edge with the
|
||||
// bar rather than clearing its whole strip, and rising only if the two would meet.
|
||||
// Anchored after the bar so the geometry it steps around is the current one
|
||||
// (REQ-UI-CONTROLS-PANEL).
|
||||
m_controlsPanel->anchorTo(worldRect, m_buildButtonBar->geometry());
|
||||
m_dimOverlay->setGeometry(0, 0, totalW, totalH);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user