From 39905b927d60e204438705728d2c214cb3f9ef81 Mon Sep 17 00:00:00 2001 From: Steven Bennetts Date: Thu, 2 Jul 2009 00:38:13 +0000 Subject: merge https://svn.aws.productengine.com/secondlife/export-from-ll/viewer-2-0@873 https://svn.aws.productengine.com/secondlife/pe/stable@888 -> viewer-2.0.0-pe-4 --- indra/newview/llpanelplaceinfo.cpp | 54 ++++++++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 17 deletions(-) (limited to 'indra/newview/llpanelplaceinfo.cpp') diff --git a/indra/newview/llpanelplaceinfo.cpp b/indra/newview/llpanelplaceinfo.cpp index 3ed93e5598..d40e10478a 100644 --- a/indra/newview/llpanelplaceinfo.cpp +++ b/indra/newview/llpanelplaceinfo.cpp @@ -34,33 +34,36 @@ #include "llpanelplaceinfo.h" -// *TODO: reorder includes to match the coding standard +#include "roles_constants.h" +#include "llsdutil.h" +#include "llsecondlifeurls.h" + #include "llinventory.h" -#include "llviewercontrol.h" + #include "llqueryflags.h" -#include "llui.h" -#include "llsecondlifeurls.h" + +#include "llbutton.h" #include "llfloater.h" #include "llfloaterreg.h" +#include "lllineeditor.h" +#include "llscrollcontainer.h" +#include "lltextbox.h" +#include "lltrans.h" +#include "llui.h" +#include "lluictrlfactory.h" #include "llagent.h" -#include "llviewerwindow.h" -#include "llviewerinventory.h" -#include "llbutton.h" #include "llfloaterworldmap.h" -#include "lllineeditor.h" #include "llinventorymodel.h" -#include "lluiconstants.h" -#include "roles_constants.h" -#include "lltextbox.h" -#include "llviewertexteditor.h" #include "lltexturectrl.h" -#include "lltrans.h" -#include "llworldmap.h" +#include "lluiconstants.h" +#include "llviewercontrol.h" +#include "llviewerinventory.h" #include "llviewerregion.h" -#include "lluictrlfactory.h" +#include "llviewertexteditor.h" +#include "llviewerwindow.h" #include "llweb.h" -#include "llsdutil.h" +#include "llworldmap.h" static LLRegisterPanelClassWrapper t_places("panel_landmark_info"); @@ -69,7 +72,8 @@ LLPanelPlaceInfo::LLPanelPlaceInfo() mParcelID(), mRequestedID(), mPosRegion(), - mLandmarkID() + mLandmarkID(), + mMinHeight(0) {} LLPanelPlaceInfo::~LLPanelPlaceInfo() @@ -104,6 +108,12 @@ BOOL LLPanelPlaceInfo::postBuild() mNotesEditor->setCommitCallback(boost::bind(&LLPanelPlaceInfo::onCommitTitleOrNote, this, NOTE)); mNotesEditor->setCommitOnFocusLost(true); + LLScrollContainer* scroll_container = getChild("scroll_container"); + scroll_container->setBorderVisible(FALSE); + mMinHeight = scroll_container->getScrolledViewRect().getHeight(); + + mScrollingPanel = getChild("scrolling_panel"); + mInfoPanel = getChild("info_panel"); return TRUE; @@ -380,3 +390,13 @@ void LLPanelPlaceInfo::onCommitTitleOrNote(LANDMARK_INFO_TYPE type) gInventory.notifyObservers(); } } + +void LLPanelPlaceInfo::reshape(S32 width, S32 height, BOOL called_from_parent) +{ + if (mMinHeight > 0) + { + mScrollingPanel->reshape(mScrollingPanel->getRect().getWidth(), mMinHeight); + } + + LLView::reshape(width, height, called_from_parent); +} -- cgit v1.2.3