diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-04-12 00:20:18 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-04-12 00:20:18 +0300 |
commit | e5aaf90bffa7005c0aa872c2084b6d57659d0fee (patch) | |
tree | a371abc18e8a956fc642e24b84f49284310f61fd /indra/newview/llbottomtray.h | |
parent | f9698c264442bb0db068e4dc9d4d1ab0ba5c210a (diff) |
STORM-1028 WIP Fixing bottom bar buttons reshaping, tier 10
Fixing a regression introduced in tier 1: not displaying the bottom tray buttons
added when bottom tray was not wide enough display them, even after increasing
the width to show all visible buttons.
The fix is to mark such buttons as auto-hidden so that they appear
as soon as we have enough free space.
Diffstat (limited to 'indra/newview/llbottomtray.h')
-rw-r--r-- | indra/newview/llbottomtray.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llbottomtray.h b/indra/newview/llbottomtray.h index db7f5bc308..52bcd2ddac 100644 --- a/indra/newview/llbottomtray.h +++ b/indra/newview/llbottomtray.h @@ -449,6 +449,16 @@ private: /// Dump a mask for debugging static std::string resizeStateMaskToString(MASK mask); + /// @return true if any of the the passed buttons have been auto-hidden due to lack of available space. + bool isAutoHidden(MASK button_types) const; + + /** + * (Un)Mark the buttons as hidden. + * + * Auto-hidden buttons are those that re-appear as soon as we have enough available space. + */ + void setAutoHidden(MASK button_types, bool hide); + /// Buttons automatically hidden due to lack of space. MASK mResizeState; |