CHUI-168 FIXED, CHUI-183 FIXED Supress of a resizable and dragging and hide a title for the docked floater
parent
5eab95955f
commit
cd7d499ea7
|
|
@ -250,14 +250,16 @@ void LLIMConversation::updateHeaderAndToolbar()
|
|||
bool is_expanded = is_hosted || is_participant_list_visible;
|
||||
mExpandCollapseBtn->setImageOverlay(getString(is_expanded ? "collapse_icon" : "expand_icon"));
|
||||
|
||||
// The button (>>) should be disabled for torn off P2P conversations.
|
||||
mExpandCollapseBtn->setEnabled(is_hosted || !mIsP2PChat);
|
||||
|
||||
// toggle floater's drag handle and title visibility
|
||||
if (mDragHandle)
|
||||
{
|
||||
// toggle floater's drag handle and title visibility
|
||||
mDragHandle->setVisible(!is_hosted);
|
||||
mDragHandle->setTitleVisible(!is_hosted);
|
||||
setCanDrag(!is_hosted);
|
||||
}
|
||||
setCanResize(!is_hosted);
|
||||
|
||||
// The button (>>) should be disabled for torn off P2P conversations.
|
||||
mExpandCollapseBtn->setEnabled(is_hosted || !mIsP2PChat);
|
||||
|
||||
mTearOffBtn->setImageOverlay(getString(is_hosted ? "tear_off_icon" : "return_icon"));
|
||||
|
||||
|
|
@ -347,6 +349,8 @@ void LLIMConversation::onOpen(const LLSD& key)
|
|||
host_floater->collapseMessagesPane(false);
|
||||
}
|
||||
|
||||
setCanResize(TRUE);
|
||||
|
||||
updateHeaderAndToolbar();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue