Tracker: Add zoom padding in list mode take 2
Add 16px to right and bottom of content when zoom fixup of last commit
This commit is contained in:
parent
f76147aa9a
commit
7d009616aa
|
@ -1352,9 +1352,11 @@ BContainerWindow::ResizeToFit()
|
||||||
frame.right = frame.left + extent.Width() + widthDiff;
|
frame.right = frame.left + extent.Width() + widthDiff;
|
||||||
frame.bottom = frame.top + extent.Height() + heightDiff;
|
frame.bottom = frame.top + extent.Height() + heightDiff;
|
||||||
|
|
||||||
// add some padding to the right and bottom
|
if (PoseView()->ViewMode() == kListMode) {
|
||||||
frame.right += be_control_look->DefaultItemSpacing() * 2;
|
// add some padding to the right and bottom
|
||||||
frame.bottom += be_control_look->DefaultItemSpacing() * 2;
|
frame.right += 16;
|
||||||
|
frame.bottom += 16;
|
||||||
|
}
|
||||||
|
|
||||||
// make sure entire window fits on screen
|
// make sure entire window fits on screen
|
||||||
frame = frame & screenFrame;
|
frame = frame & screenFrame;
|
||||||
|
|
Loading…
Reference in New Issue