diff options
author | Oz Linden <oz@lindenlab.com> | 2012-01-24 16:21:34 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-01-24 16:21:34 -0500 |
commit | b2f77bee7ea98f5a4ff59e00095b5b3aff11e35b (patch) | |
tree | 7695bb632502f24325f7044c69e30946e767abce /indra/llui/llwindowshade.cpp | |
parent | 79f1cd0a73bd86ff545ad78b9b1878e350d77416 (diff) | |
parent | ea6cbc7b6b1de051a9bb1c311c4399a2b4d42cb3 (diff) |
merge changes for vmrg-217
Diffstat (limited to 'indra/llui/llwindowshade.cpp')
-rw-r--r-- | indra/llui/llwindowshade.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/llui/llwindowshade.cpp b/indra/llui/llwindowshade.cpp index ae8b30b1ba..f5c463c961 100644 --- a/indra/llui/llwindowshade.cpp +++ b/indra/llui/llwindowshade.cpp @@ -160,7 +160,7 @@ void LLWindowShade::draw() notification_area->reshape(notification_area->getRect().getWidth(), llclamp(message_rect.getHeight() + 15, - llmin(mFormHeight, MAX_NOTIFICATION_AREA_HEIGHT), + llmax(mFormHeight, MIN_NOTIFICATION_AREA_HEIGHT), MAX_NOTIFICATION_AREA_HEIGHT)); LLUICtrl::draw(); @@ -176,12 +176,12 @@ void LLWindowShade::draw() { hide(); } - else if (notification_area->getCollapseFactor() < 0.01f) + else if (notification_area->getVisibleAmount() < 0.01f) { displayLatestNotification(); } - if (!notification_area->getVisible() && (notification_area->getCollapseFactor() < 0.001f)) + if (!notification_area->getVisible() && (notification_area->getVisibleAmount() < 0.001f)) { getChildRef<LLLayoutPanel>("background_area").setBackgroundVisible(false); setMouseOpaque(false); @@ -371,6 +371,11 @@ void LLWindowShade::setTextColor(LLColor4 color) getChild<LLTextBox>("notification_text")->setColor(color); } +bool LLWindowShade::isShown() const +{ + return getChildRef<LLLayoutPanel>("notification_area").getVisible(); +} + void LLWindowShade::setCanClose(bool can_close) { getChildView("close_panel")->setVisible(can_close); |