diff options
author | Mike Antipov <mantipov@productengine.com> | 2009-11-10 15:02:42 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2009-11-10 15:02:42 +0200 |
commit | 3eafbeaac57c952b674fb134124354036c9bb967 (patch) | |
tree | 89e4695ea68567bc9e3961798b4ec2d9bb7ba0fc /indra/newview/llchiclet.cpp | |
parent | 7dabb3c46e6cdf208ce7dc46b89f431a247d6ba6 (diff) |
Work on major sub-task EXT-991 (Update bottom bar behavior on resize)
Initial refactoring of functionality:
- Re-Fixed bug with visibility of chiclet panel of the min size
- updated bottomtray xml to make buttons identical to each other
- Imroved logic while resizing of bottom tray (changing width of chiclet & nearby panels, hide/show buttons)
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llchiclet.cpp')
-rw-r--r-- | indra/newview/llchiclet.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index 97447a85c6..16ee9a0007 100644 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -787,11 +787,13 @@ LLChicletPanel::Params::Params() chiclet_padding = 3; scrolling_offset = 40; +/* if (!min_width.isProvided()) { // min_width = 4 chiclets + 3 paddings - min_width = 179 + 3*chiclet_padding; + min_width = 180 + 3*chiclet_padding; } +*/ }; LLChicletPanel::LLChicletPanel(const Params&p) @@ -805,6 +807,10 @@ LLChicletPanel::LLChicletPanel(const Params&p) , mShowControls(true) { LLPanel::Params panel_params; +// *TODO: remove color settings +panel_params.background_visible(true); +panel_params.bg_alpha_color(LLColor4::red); + panel_params.follows.flags(FOLLOWS_LEFT | FOLLOWS_RIGHT); mScrollArea = LLUICtrlFactory::create<LLPanel>(panel_params,this); // important for Show/Hide Camera and Move controls menu in bottom tray to work properly @@ -1051,7 +1057,7 @@ void LLChicletPanel::reshape(S32 width, S32 height, BOOL called_from_parent ) width, scroll_button_rect.mBottom)); mScrollArea->setRect(LLRect(scroll_button_rect.getWidth() + SCROLL_BUTTON_PAD, height, width - scroll_button_rect.getWidth() - SCROLL_BUTTON_PAD, 0)); - mShowControls = width > mMinWidth; + mShowControls = width >= mMinWidth; mScrollArea->setVisible(mShowControls); trimChiclets(); |