diff options
| author | Richard Linden <none@none> | 2011-06-23 11:35:14 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2011-06-23 11:35:14 -0700 |
| commit | af142618f9c18a418bd11ab8eae6c83caa03ddac (patch) | |
| tree | fbdfb3f954bf68df568c1dc898b0dc261ad77873 /indra/newview/llinventorypanel.cpp | |
| parent | ae2cbe5258ad76e22420be2760379480e10fb72c (diff) | |
| parent | 70fc5af53ffc39c3c0ef32b99a6c83e972b8a117 (diff) | |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-experience
Diffstat (limited to 'indra/newview/llinventorypanel.cpp')
| -rw-r--r-- | indra/newview/llinventorypanel.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index 49e68402e5..3666c51c82 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -42,7 +42,6 @@ #include "llinventorymodelbackgroundfetch.h" #include "llsidepanelinventory.h" #include "llsidetray.h" -#include "llscrollcontainer.h" #include "llviewerattachmenu.h" #include "llviewerfoldertype.h" #include "llvoavatarself.h" @@ -162,7 +161,7 @@ void LLInventoryPanel::buildFolderView(const LLInventoryPanel::Params& params) else { root_id = (preferred_type != LLFolderType::FT_NONE) - ? gInventory.findCategoryUUIDForType(preferred_type) + ? gInventory.findCategoryUUIDForType(preferred_type, false, false) : LLUUID::null; } @@ -204,13 +203,9 @@ void LLInventoryPanel::initFromParams(const LLInventoryPanel::Params& params) { LLRect scroller_view_rect = getRect(); scroller_view_rect.translate(-scroller_view_rect.mLeft, -scroller_view_rect.mBottom); - LLScrollContainer::Params p; - p.name("Inventory Scroller"); - p.rect(scroller_view_rect); - p.follows.flags(FOLLOWS_ALL); - p.reserve_scroll_corner(true); - p.tab_stop(true); - mScroller = LLUICtrlFactory::create<LLScrollContainer>(p); + LLScrollContainer::Params scroller_params(params.scroll()); + scroller_params.rect(scroller_view_rect); + mScroller = LLUICtrlFactory::create<LLScrollContainer>(scroller_params); addChild(mScroller); mScroller->addChild(mFolderRoot); mFolderRoot->setScrollContainer(mScroller); |
