Fixed broken layout of inventory folderview

meow-7.2.2
Ansariel 2013-07-07 20:30:36 +02:00
parent 0d4236e449
commit 69f09eae8d
1 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,10 @@ void LLInventoryPanel::initFromParams(const LLInventoryPanel::Params& params)
// Scroller
LLRect scroller_view_rect = getRect();
scroller_view_rect.translate(-scroller_view_rect.mLeft, -scroller_view_rect.mBottom);
// <FS:Ansariel> Pull this magic number here so inventory scroll panel
// doesn't get cut off on the left side!
scroller_view_rect.mLeft += 2;
// </FS:Ansariel>
LLScrollContainer::Params scroller_params(mParams.scroll());
scroller_params.rect(scroller_view_rect);
mScroller = LLUICtrlFactory::create<LLFolderViewScrollContainer>(scroller_params);