diff options
| author | Palmer Truelson <palmer@lindenlab.com> | 2009-11-25 09:42:58 -0800 |
|---|---|---|
| committer | Palmer Truelson <palmer@lindenlab.com> | 2009-11-25 09:42:58 -0800 |
| commit | bb614fa887ec7cadc5b370c1dcf412ae5cf662e1 (patch) | |
| tree | 2ee594428704e0f4774f717d71485ee0bdde8748 /indra/llui/lllayoutstack.cpp | |
| parent | 6d66910c6e2fbb25bf8b5c7b90e795f350342104 (diff) | |
| parent | 57bc7dc44f31ef132a4abec228459c490c425eed (diff) | |
Merge of viewer 2
Diffstat (limited to 'indra/llui/lllayoutstack.cpp')
| -rw-r--r-- | indra/llui/lllayoutstack.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/llui/lllayoutstack.cpp b/indra/llui/lllayoutstack.cpp index 14a6ddb7e0..1fb618adee 100644 --- a/indra/llui/lllayoutstack.cpp +++ b/indra/llui/lllayoutstack.cpp @@ -413,6 +413,19 @@ void LLLayoutStack::updatePanelAutoResize(const std::string& panel_name, BOOL au } } +bool LLLayoutStack::getPanelMinSize(const std::string& panel_name, S32* min_widthp, S32* min_heightp) +{ + LayoutPanel* panel = findEmbeddedPanelByName(panel_name); + + if (panel) + { + if (min_widthp) *min_widthp = panel->mMinWidth; + if (min_heightp) *min_heightp = panel->mMinHeight; + } + + return NULL != panel; +} + static LLFastTimer::DeclareTimer FTM_UPDATE_LAYOUT("Update LayoutStacks"); void LLLayoutStack::updateLayout(BOOL force_resize) { |
