summaryrefslogtreecommitdiff
path: root/indra/llui/llwindowshade.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-01-30 10:23:06 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-01-30 10:23:06 -0500
commit9bbaf3ab14cf131a1938455c99d3cf0f4abc176c (patch)
tree4292dd5c7fe667ef23e8c0ed821c973818726363 /indra/llui/llwindowshade.cpp
parenta2544b18e8e1d49092a32833ddfc39826d1a5495 (diff)
parent4ef9277761b5faee2825177112939b72c563a4ea (diff)
merge
Diffstat (limited to 'indra/llui/llwindowshade.cpp')
-rw-r--r--indra/llui/llwindowshade.cpp11
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);