mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
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:
parent
5a2e5c3182
commit
42f486ac01
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user