Draw correctly when in a scroller. Fixed to use local coords correctly and set image size (rev sdagley, appr sdagley)

This commit is contained in:
pinkerton 1998-04-15 00:05:39 +00:00
parent 5a2e5c3182
commit 42f486ac01

View File

@ -83,13 +83,14 @@ CNavCenterSelectorPane::DrawSelf()
::EraseRect(&cellBounds);
// find the bounds of the first cell
cellBounds.bottom = cellBounds.top + mCellHeight;
cellBounds.top = 0;
cellBounds.bottom = mCellHeight;
#if DRAW_WITH_TITLE
StTextState savedState;
UTextTraits::SetPortTextTraits(130);
#endif
// iterate over workspaces, drawing each in turn.
const listCount = HT_GetViewListCount(GetHTPane());
const HT_View selectedView = HT_GetSelectedView(GetHTPane());
@ -110,6 +111,8 @@ CNavCenterSelectorPane::DrawSelf()
} // for each selector
ResizeImageTo ( mFrameSize.width, cellBounds.top, true );
} // DrawSelf