Make the Screen preference app windows non-resizable and make the top line of the screen BBox flush with the top line of the control BBox. Fixes #7526
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43176 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -166,8 +166,8 @@ screen_errors(status_t status)
|
|||||||
ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
||||||
:
|
:
|
||||||
BWindow(settings->WindowFrame(), B_TRANSLATE_SYSTEM_NAME("Screen"),
|
BWindow(settings->WindowFrame(), B_TRANSLATE_SYSTEM_NAME("Screen"),
|
||||||
B_TITLED_WINDOW, B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS,
|
B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE
|
||||||
B_ALL_WORKSPACES),
|
| B_AUTO_UPDATE_SIZE_LIMITS, B_ALL_WORKSPACES),
|
||||||
fIsVesa(false),
|
fIsVesa(false),
|
||||||
fBootWorkspaceApplied(false),
|
fBootWorkspaceApplied(false),
|
||||||
fScreenMode(this),
|
fScreenMode(this),
|
||||||
@@ -482,7 +482,7 @@ ScreenWindow::ScreenWindow(ScreenSettings* settings)
|
|||||||
.SetInsets(10, 10, 10, 10)
|
.SetInsets(10, 10, 10, 10)
|
||||||
.AddGroup(B_HORIZONTAL, 10.0)
|
.AddGroup(B_HORIZONTAL, 10.0)
|
||||||
.AddGroup(B_VERTICAL)
|
.AddGroup(B_VERTICAL)
|
||||||
.AddStrut(controlsBox->TopBorderOffset() - 1)
|
.AddStrut(floor(controlsBox->TopBorderOffset() / 16) - 1)
|
||||||
.Add(screenBox)
|
.Add(screenBox)
|
||||||
.End()
|
.End()
|
||||||
.Add(controlsBox)
|
.Add(controlsBox)
|
||||||
|
|||||||
Reference in New Issue
Block a user