ProcessController: fix layout when running in a window.
This commit is contained in:
parent
67eeb4db48
commit
d57b8f90e2
@ -48,7 +48,7 @@ PCWindow::PCWindow()
|
|||||||
|
|
||||||
// set up a rectangle && instantiate a new view
|
// set up a rectangle && instantiate a new view
|
||||||
// view rect should be same size as window rect but with left top at (0, 0)
|
// view rect should be same size as window rect but with left top at (0, 0)
|
||||||
rect.Set(0, 0, width, 15);
|
rect.Set(0, 0, width - 1, 15);
|
||||||
SetSizeLimits(rect.Width() + 21, rect.Width() + 21, 15 + 21, 15 + 21);
|
SetSizeLimits(rect.Width() + 21, rect.Width() + 21, 15 + 21, 15 + 21);
|
||||||
|
|
||||||
rect.OffsetTo((Bounds().Width() - 16) / 2, (Bounds().Height() - 16) / 2);
|
rect.OffsetTo((Bounds().Width() - 16) / 2, (Bounds().Height() - 16) / 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user