Deskbar: Set no horizontal window size limit in vertical mode

... better so that for scroller arrows will work again.
This regression occurred in hrev53890 trying to fix #15067.

Use B_SIZE_UNLIMITED not -1 for no window size limit.
This commit is contained in:
John Scipione 2020-02-23 17:10:23 -05:00
parent d7aa468e43
commit 6f114b94f2

View File

@ -667,7 +667,7 @@ TBarWindow::SetSizeLimits()
} else { } else {
if (fBarView->Vertical()) { if (fBarView->Vertical()) {
BWindow::SetSizeLimits(gMinimumWindowWidth, gMaximumWindowWidth, BWindow::SetSizeLimits(gMinimumWindowWidth, gMaximumWindowWidth,
kMenuBarHeight - 1, screenFrame.Height()); kMenuBarHeight - 1, B_SIZE_UNLIMITED);
} else { } else {
BWindow::SetSizeLimits(screenFrame.Width(), screenFrame.Width(), BWindow::SetSizeLimits(screenFrame.Width(), screenFrame.Width(),
kMenuBarHeight - 1, kMaximumIconSize + 4); kMenuBarHeight - 1, kMaximumIconSize + 4);