From 06eadd587eed8b5e93d0eb705ad55347ca8e9348 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 2 Jan 2016 19:17:18 -1000 Subject: [PATCH] Table scissor adjustment --- specter/lib/Table.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specter/lib/Table.cpp b/specter/lib/Table.cpp index 1bd099100..f30908d16 100644 --- a/specter/lib/Table.cpp +++ b/specter/lib/Table.cpp @@ -659,6 +659,8 @@ void Table::RowsView::resized(const boo::SWindowRect& root, const boo::SWindowRe return; float pf = rootView().viewRes().pixelFactor(); + boo::SWindowRect cellScissor = scissor; + cellScissor.size[1] -= 2 * pf; boo::SWindowRect rowRect = sub; rowRect.location[1] += sub.size[1] - ROW_HEIGHT * pf; int spacing = (ROW_HEIGHT + CELL_MARGIN * 2) * pf; @@ -670,7 +672,7 @@ void Table::RowsView::resized(const boo::SWindowRect& root, const boo::SWindowRe { cellRectIt->location[1] -= spacing; if (cv.m_view) - cv.m_view->resized(root, *cellRectIt, scissor); + cv.m_view->resized(root, *cellRectIt, cellScissor); } ++cellRectIt; }