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:
John Scipione 2016-08-26 23:07:18 -07:00
parent f76147aa9a
commit 7d009616aa
1 changed files with 5 additions and 3 deletions

View File

@ -1352,9 +1352,11 @@ BContainerWindow::ResizeToFit()
frame.right = frame.left + extent.Width() + widthDiff;
frame.bottom = frame.top + extent.Height() + heightDiff;
// add some padding to the right and bottom
frame.right += be_control_look->DefaultItemSpacing() * 2;
frame.bottom += be_control_look->DefaultItemSpacing() * 2;
if (PoseView()->ViewMode() == kListMode) {
// add some padding to the right and bottom
frame.right += 16;
frame.bottom += 16;
}
// make sure entire window fits on screen
frame = frame & screenFrame;