From f76147aa9ac4cd9c3367305f429dbdffb6df8bcf Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 26 Aug 2016 22:41:11 -0700 Subject: [PATCH] Tracker: Add some zoom padding in list mode Add some padding to the right and bottom of the content when you zoom. 16px the size of a mini-icon --- src/kits/tracker/ContainerWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 526d94468f..7357397b39 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -1352,6 +1352,10 @@ 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; + // make sure entire window fits on screen frame = frame & screenFrame;