summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorYuri Chebotarev <ychebotarev@productengine.com>2009-12-15 14:28:51 +0200
committerYuri Chebotarev <ychebotarev@productengine.com>2009-12-15 14:28:51 +0200
commitfe56e4fbfb57e24b83ed644e8b3843abd409ed75 (patch)
treec9f79828eda61bdd89075ab88f588597c7dbac6c /indra
parent50792b7c2a2fffd8d6fb99c1f5148e9881f0101d (diff)
fix for bug EXT-3254 IM well expands unexpectedly after attempt to resize
problem was with floater minHeight. set minheight to 1 list item height (so 1 item is always visible) --HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llsyswellwindow.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llsyswellwindow.cpp b/indra/newview/llsyswellwindow.cpp
index c269e0b47e..ca7cb0f59f 100644
--- a/indra/newview/llsyswellwindow.cpp
+++ b/indra/newview/llsyswellwindow.cpp
@@ -246,6 +246,24 @@ void LLSysWellWindow::handleItemAdded(EItemType added_item_type)
// refresh list to recalculate mSeparator position
mMessageList->reshape(mMessageList->getRect().getWidth(), mMessageList->getRect().getHeight());
}
+
+ //fix for EXT-3254
+ //set limits for min_height.
+ S32 parent_list_delta_height = getRect().getHeight() - mMessageList->getRect().getHeight();
+
+ std::vector<LLPanel*> items;
+ mMessageList->getItems(items);
+
+ if(items.size()>1)//first item is separator
+ {
+ S32 min_height;
+ S32 min_width;
+ getResizeLimits(&min_width,&min_height);
+
+ min_height = items[1]->getRect().getHeight() + 2 * mMessageList->getBorderWidth() + parent_list_delta_height;
+
+ setResizeLimits(min_width,min_height);
+ }
}
void LLSysWellWindow::handleItemRemoved(EItemType removed_item_type)