Revert to manually offsetting the BBox in BScreen.
Take this opportunity to reapply this hack in a much nicer way. Before the hack included the default margins, now it doesn't. Should be back to normal, sorry for the noise.
This commit is contained in:
parent
e473d011dd
commit
83cc66b38f
@ -506,16 +506,18 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
|||||||
fRevertButton->SetEnabled(false);
|
fRevertButton->SetEnabled(false);
|
||||||
|
|
||||||
BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING)
|
BLayoutBuilder::Group<>(this, B_VERTICAL, B_USE_DEFAULT_SPACING)
|
||||||
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
|
.AddGroup(B_HORIZONTAL)
|
||||||
.AddGroup(B_HORIZONTAL)
|
.AddGroup(B_VERTICAL, 0)
|
||||||
|
.AddStrut(floorf(controlsBox->TopBorderOffset()) - 1)
|
||||||
.Add(screenBox)
|
.Add(screenBox)
|
||||||
.Add(controlsBox)
|
|
||||||
.End()
|
.End()
|
||||||
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
.Add(controlsBox)
|
||||||
.Add(fRevertButton)
|
.End()
|
||||||
.AddGlue()
|
.AddGroup(B_HORIZONTAL, B_USE_DEFAULT_SPACING)
|
||||||
.End()
|
.Add(fRevertButton)
|
||||||
.SetInsets(B_USE_DEFAULT_SPACING);
|
.AddGlue()
|
||||||
|
.End()
|
||||||
|
.SetInsets(B_USE_DEFAULT_SPACING);
|
||||||
|
|
||||||
_UpdateControls();
|
_UpdateControls();
|
||||||
_UpdateMonitor();
|
_UpdateMonitor();
|
||||||
|
Loading…
Reference in New Issue
Block a user