Don't bother updating scroll list scrollbar rect when invisible
This commit is contained in:
@@ -465,10 +465,10 @@ void LLScrollListCtrl::updateLayout()
|
|||||||
{
|
{
|
||||||
// provide space on the right for scrollbar
|
// provide space on the right for scrollbar
|
||||||
mItemListRect.mRight = getRect().getWidth() - mBorderThickness - SCROLLBAR_SIZE;
|
mItemListRect.mRight = getRect().getWidth() - mBorderThickness - SCROLLBAR_SIZE;
|
||||||
|
mScrollbar->setOrigin(mItemListRect.mRight, mItemListRect.mBottom);
|
||||||
|
mScrollbar->reshape(SCROLLBAR_SIZE, mItemListRect.getHeight() + (mDisplayColumnHeaders ? mHeadingHeight : 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
mScrollbar->setOrigin(getRect().getWidth() - mBorderThickness - SCROLLBAR_SIZE, mItemListRect.mBottom);
|
|
||||||
mScrollbar->reshape(SCROLLBAR_SIZE, mItemListRect.getHeight() + (mDisplayColumnHeaders ? mHeadingHeight : 0));
|
|
||||||
mScrollbar->setPageSize(page_lines);
|
mScrollbar->setPageSize(page_lines);
|
||||||
mScrollbar->setDocSize( getItemCount() );
|
mScrollbar->setDocSize( getItemCount() );
|
||||||
mScrollbar->setVisible(scrollbar_visible);
|
mScrollbar->setVisible(scrollbar_visible);
|
||||||
|
|||||||
Reference in New Issue
Block a user