diff options
author | Denis Serdjuk <dserduk@productengine.com> | 2010-02-19 15:09:20 +0200 |
---|---|---|
committer | Denis Serdjuk <dserduk@productengine.com> | 2010-02-19 15:09:20 +0200 |
commit | e341b84503f71e519d4d7f59117ebbe4210d4287 (patch) | |
tree | 21575e7db32601e23c16676679a40a8e10ebb65e /indra/newview/llfolderview.cpp | |
parent | f752b73cb2c18521765760bb7986816ee7b94056 (diff) |
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
Diffstat (limited to 'indra/newview/llfolderview.cpp')
-rw-r--r-- | indra/newview/llfolderview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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(); |