From 7d009616aab2b00f0db48976625db042d141c5b1 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Fri, 26 Aug 2016 23:07:18 -0700 Subject: [PATCH] Tracker: Add zoom padding in list mode take 2 Add 16px to right and bottom of content when zoom fixup of last commit --- src/kits/tracker/ContainerWindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kits/tracker/ContainerWindow.cpp b/src/kits/tracker/ContainerWindow.cpp index 7357397b39..f6f77bd2f4 100644 --- a/src/kits/tracker/ContainerWindow.cpp +++ b/src/kits/tracker/ContainerWindow.cpp @@ -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;