CHUI-308 : Temp fix while waiting for a scroll container to be implemented
parent
20b95f6ac0
commit
5cad4b5768
|
|
@ -118,7 +118,7 @@ BOOL LLIMFloaterContainer::postBuild()
|
|||
|
||||
mConversationsListPanel = getChild<LLPanel>("conversations_list_panel");
|
||||
|
||||
// CHUI-98 : View Model for conversations
|
||||
// Create the root model and view for all conversation sessions
|
||||
LLConversationItem* base_item = new LLConversationItem(getRootViewModel());
|
||||
LLFolderView::Params p;
|
||||
p.view_model = &mConversationViewModel;
|
||||
|
|
@ -129,6 +129,8 @@ BOOL LLIMFloaterContainer::postBuild()
|
|||
p.root = NULL;
|
||||
|
||||
mConversationsRoot = LLUICtrlFactory::create<LLFolderView>(p);
|
||||
mConversationsRoot->setVisible(TRUE);
|
||||
|
||||
mConversationsListPanel->addChild(mConversationsRoot);
|
||||
|
||||
addConversationListItem(LLUUID()); // manually add nearby chat
|
||||
|
|
@ -370,8 +372,13 @@ void LLIMFloaterContainer::draw()
|
|||
}
|
||||
}
|
||||
|
||||
repositioningWidgets();
|
||||
|
||||
// CHUI-308 : Hack! We shouldn't have to do that but we have too as long as
|
||||
// we don't have a scroll container.
|
||||
// *TODO: Take those 3 lines out once we implement the scroll container.
|
||||
repositioningWidgets();
|
||||
mConversationsRoot->setRect(mConversationsListPanel->getLocalRect());
|
||||
mConversationsRoot->setFollowsAll();
|
||||
|
||||
if (mTabContainer->getTabCount() == 0)
|
||||
{
|
||||
// Do not close the container when every conversation is torn off because the user
|
||||
|
|
@ -630,7 +637,6 @@ void LLIMFloaterContainer::addConversationListItem(const LLUUID& uuid)
|
|||
widget->addToFolder(mConversationsRoot);
|
||||
|
||||
// Add it to the UI
|
||||
mConversationsListPanel->addChild(widget);
|
||||
widget->setVisible(TRUE);
|
||||
|
||||
// Create the participants widgets now
|
||||
|
|
|
|||
Loading…
Reference in New Issue