CHUI-283: within LLFolderView::scrollToShowItem(), adjusted the calculation that scrolls to the selected item. My prior commit changed this calculation and adjusted it in this commit to preserve prior behavior.

meow-7.2.2
Gilbert Gonzales 2012-09-20 16:33:21 -07:00
parent 381c13d0e5
commit 59a6a23ee0
1 changed files with 2 additions and 2 deletions

View File

@ -1654,8 +1654,8 @@ void LLFolderView::scrollToShowItem(LLFolderViewItem* item, const LLRect& constr
// get portion of item that we want to see...
LLRect item_local_rect = LLRect(item->getIndentation(),
local_rect.getHeight(),
//+32 is supposed to include few first characters
llmin(item->getLabelXPos() + 32, local_rect.getWidth()),
//+40 is supposed to include few first characters
llmin(item->getLabelXPos() - item->getIndentation() + 40, local_rect.getWidth()),
llmax(0, local_rect.getHeight() - max_height_to_show));
LLRect item_doc_rect;