From e341b84503f71e519d4d7f59117ebbe4210d4287 Mon Sep 17 00:00:00 2001 From: Denis Serdjuk Date: Fri, 19 Feb 2010 15:09:20 +0200 Subject: fixed low bug EXT-5423 'Drag a landmark here ...' prompting is cropped in blank Favorites bar panel Cause: LLFolderView did NOT take into account size of status textbox during required height calculation Solution: Reserve size for textbox if the folderview does not have filtered items. --HG-- branch : product-engine --- indra/newview/llfolderview.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/newview/llfolderview.cpp') diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp index 68faaeaa0b..7d527fa98a 100644 --- a/indra/newview/llfolderview.cpp +++ b/indra/newview/llfolderview.cpp @@ -419,6 +419,11 @@ S32 LLFolderView::arrange( S32* unused_width, S32* unused_height, S32 filter_gen S32 total_width = LEFT_PAD; S32 running_height = mDebugFilters ? llceil(LLFontGL::getFontMonospace()->getLineHeight()) : 0; S32 target_height = running_height; + if(!mHasVisibleChildren)// is there any filtered items ? + { + //Nope. We need to display status textbox, let's reserve some place for it + target_height += mStatusTextBox->getTextPixelHeight(); + } S32 parent_item_height = getRect().getHeight(); for (folders_t::iterator iter = mFolders.begin(); -- cgit v1.2.3