diff options
| author | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-09-20 16:33:21 -0700 | 
|---|---|---|
| committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-09-20 16:33:21 -0700 | 
| commit | 59a6a23ee0a94a7695679ea8df93bc0c60682262 (patch) | |
| tree | 43e382946f721dcbac60089a63d3ebd67d108bd2 | |
| parent | 381c13d0e51c3c054fdf2afeff8a8bcb6fc7aa11 (diff) | |
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.
| -rw-r--r-- | indra/llui/llfolderview.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/indra/llui/llfolderview.cpp b/indra/llui/llfolderview.cpp index ab4efea4dd..ce1bc5914c 100644 --- a/indra/llui/llfolderview.cpp +++ b/indra/llui/llfolderview.cpp @@ -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; | 
