diff options
author | Mike Antipov <mantipov@productengine.com> | 2009-11-19 15:19:49 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2009-11-19 15:19:49 +0200 |
commit | ef292e6a8b19160de7cf91d07f48daa68a56453e (patch) | |
tree | 6e98c0493940686c61d6c8506b35690068f64edd /indra/newview/llchiclet.h | |
parent | 88cce61b09d225df0bcd8aab9dbd2c5a01ee7e19 (diff) |
Fixed major bug EXT-2620 (IM Chiclet Panel goes crazy when new IM chiclets are added (chiclet scrolling appears with no need))
- refactored algotithm of caclulating position of the first chiclet in the list when adding new one.
- added comments for LLChicketPanel::addChiclet() & LLChicketPanel::arrange() methods
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llchiclet.h')
-rw-r--r-- | indra/newview/llchiclet.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/indra/newview/llchiclet.h b/indra/newview/llchiclet.h index bb5dc1e550..c0e8a6c70f 100644 --- a/indra/newview/llchiclet.h +++ b/indra/newview/llchiclet.h @@ -769,16 +769,23 @@ protected: LLChicletPanel(const Params&p); friend class LLUICtrlFactory; - S32 calcChickletPanleWidth(); - - /* - * Adds chiclet to list and rearranges all chiclets. - */ + /** + * Adds chiclet to list and rearranges all chiclets. + * They should be right aligned, most recent right. See EXT-1293 + * + * It calculates position of the first chiclet in the list. Other chiclets are placed in arrange(). + * + * @see arrange() + */ bool addChiclet(LLChiclet*, S32 index); - /* - * Arranges chiclets. - */ + /** + * Arranges chiclets to have them in correct positions. + * + * Method bases on assumption that first chiclet has correct rect and starts from the its position. + * + * @see addChiclet() + */ void arrange(); /* |