diff options
| author | richard <none@none> | 2009-11-09 15:29:47 -0800 | 
|---|---|---|
| committer | richard <none@none> | 2009-11-09 15:29:47 -0800 | 
| commit | 4eb72a12a2280d3be6ac556ad80eb953d249e8eb (patch) | |
| tree | 9316784e58adc830d5cd893694698e38786af561 /indra/newview/llnavigationbar.cpp | |
| parent | fac0b6836a59681443fb2bbd13e6b5eb9c07cef5 (diff) | |
data driven layout of top-level UI elements
EXT-1219 Side tray slide-out animation
cleaned up some layout of bottom tray contents
reviewed by James
Diffstat (limited to 'indra/newview/llnavigationbar.cpp')
| -rw-r--r-- | indra/newview/llnavigationbar.cpp | 16 | 
1 files changed, 7 insertions, 9 deletions
| diff --git a/indra/newview/llnavigationbar.cpp b/indra/newview/llnavigationbar.cpp index 4f145891ea..d37236aadf 100644 --- a/indra/newview/llnavigationbar.cpp +++ b/indra/newview/llnavigationbar.cpp @@ -587,6 +587,8 @@ void LLNavigationBar::showNavigationPanel(BOOL visible)  			// this is duplicated in 'else' section because it should be called BEFORE fb->reshape  			reshape(nbRect.getWidth(), nbRect.getHeight());  			setRect(nbRect); +			// propagate size to parent container +			getParent()->reshape(nbRect.getWidth(), nbRect.getHeight());  			fb->reshape(fbRect.getWidth(), fbRect.getHeight());  			fb->setRect(fbRect); @@ -600,6 +602,7 @@ void LLNavigationBar::showNavigationPanel(BOOL visible)  			reshape(nbRect.getWidth(), nbRect.getHeight());  			setRect(nbRect); +			getParent()->reshape(nbRect.getWidth(), nbRect.getHeight());  		}  	}  	else @@ -614,6 +617,7 @@ void LLNavigationBar::showNavigationPanel(BOOL visible)  			// this is duplicated in 'else' section because it should be called BEFORE fb->reshape  			reshape(nbRect.getWidth(), nbRect.getHeight());  			setRect(nbRect); +			getParent()->reshape(nbRect.getWidth(), nbRect.getHeight());  			fb->reshape(fbRect.getWidth(), fbRect.getHeight());  			fb->setRect(fbRect); @@ -626,16 +630,12 @@ void LLNavigationBar::showNavigationPanel(BOOL visible)  			reshape(nbRect.getWidth(), nbRect.getHeight());  			setRect(nbRect); +			getParent()->reshape(nbRect.getWidth(), nbRect.getHeight());  		}  	}  	childSetVisible("bg_icon", fpVisible);  	childSetVisible("bg_icon_no_fav", !fpVisible); - -	if(LLSideTray::instanceCreated()) -	{ -		LLSideTray::getInstance()->resetPanelRect(); -	}  }  void LLNavigationBar::showFavoritesPanel(BOOL visible) @@ -670,6 +670,7 @@ void LLNavigationBar::showFavoritesPanel(BOOL visible)  		reshape(nbRect.getWidth(), nbRect.getHeight());  		setRect(nbRect); +		getParent()->reshape(nbRect.getWidth(), nbRect.getHeight());  		fb->reshape(fbRect.getWidth(), fbRect.getHeight());  		fb->setRect(fbRect); @@ -694,14 +695,11 @@ void LLNavigationBar::showFavoritesPanel(BOOL visible)  		reshape(nbRect.getWidth(), nbRect.getHeight());  		setRect(nbRect); +		getParent()->reshape(nbRect.getWidth(), nbRect.getHeight());  	}  	childSetVisible("bg_icon", visible);  	childSetVisible("bg_icon_no_fav", !visible);  	fb->setVisible(visible); -	if(LLSideTray::instanceCreated()) -	{ -		LLSideTray::getInstance()->resetPanelRect(); -	}  } | 
