diff options
author | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2010-03-04 16:55:00 +0200 |
---|---|---|
committer | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2010-03-04 16:55:00 +0200 |
commit | a9b829f371183de408745d27c3fbabf9d4624ea2 (patch) | |
tree | daa9b80628dbaae2f4fb150c72c8c3a6513f1a72 /indra/newview/llpanelclassified.cpp | |
parent | 997e91f08e9b6afd5bb3335da235e6ea9e9c0761 (diff) |
Fixed low bug EXT-5998 - Classified is scrolled if previos classified was scrolled.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llpanelclassified.cpp')
-rw-r--r-- | indra/newview/llpanelclassified.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpanelclassified.cpp b/indra/newview/llpanelclassified.cpp index 0bbd850eda..d59a7d752e 100644 --- a/indra/newview/llpanelclassified.cpp +++ b/indra/newview/llpanelclassified.cpp @@ -1252,6 +1252,7 @@ void LLPanelClassifiedInfo::onOpen(const LLSD& key) resetData(); resetControls(); + scrollToTop(); setClassifiedId(key["classified_id"]); setClassifiedName(key["name"]); @@ -1517,6 +1518,13 @@ LLRect LLPanelClassifiedInfo::getDefaultSnapshotRect() return getChild<LLUICtrl>("snapshot_panel")->getLocalRect(); } +void LLPanelClassifiedInfo::scrollToTop() +{ + LLScrollContainer* scrollContainer = findChild<LLScrollContainer>("profile_scroll"); + if (scrollContainer) + scrollContainer->goToTop(); +} + void LLPanelClassifiedInfo::onMapClick() { LLFloaterWorldMap::getInstance()->trackLocation(getPosGlobal()); @@ -1612,6 +1620,8 @@ void LLPanelClassifiedEdit::onOpen(const LLSD& key) mIsNew = classified_id.isNull(); + scrollToTop(); + if(mIsNew) { setAvatarId(gAgent.getID()); |