From 1f486a9515d335e0156b23fa84eeb34cdf57cac1 Mon Sep 17 00:00:00 2001 From: Jonathan Yap Date: Fri, 26 Aug 2011 12:11:57 -0400 Subject: STORM-1567 Mute button for llDialog popup Made changes per RB feedback. --- indra/newview/lltoastnotifypanel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'indra/newview/lltoastnotifypanel.cpp') diff --git a/indra/newview/lltoastnotifypanel.cpp b/indra/newview/lltoastnotifypanel.cpp index ea047a1878..6873cf058a 100644 --- a/indra/newview/lltoastnotifypanel.cpp +++ b/indra/newview/lltoastnotifypanel.cpp @@ -305,7 +305,6 @@ void LLToastNotifyPanel::updateButtonsLayout(const std::vectorgetRect().getWidth(); LLButton* ignore_btn = NULL; LLButton* mute_btn = NULL; @@ -346,7 +345,6 @@ void LLToastNotifyPanel::updateButtonsLayout(const std::vectorsetRect(ignore_btn_rect); @@ -358,6 +356,7 @@ void LLToastNotifyPanel::updateButtonsLayout(const std::vectorgetRect()); S32 buttons_per_row = max_width / BUTTON_WIDTH; //assume that h_pad far less than BUTTON_WIDTH + // Place mute (Block) button to the left of the ignore button. S32 mute_btn_left = buttons_per_row * BUTTON_WIDTH + (buttons_per_row - 1) * h_pad - mute_btn_rect.getWidth() - ignore_btn_width - (h_pad / 2); if (mute_btn_left + mute_btn_rect.getWidth() > max_width) // make sure that the mute button is in panel { -- cgit v1.2.3