ProcessController: fix layout when running in a window.

This commit is contained in:
Adrien Destugues 2021-01-20 18:28:37 +01:00
parent 67eeb4db48
commit d57b8f90e2

View File

@ -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);