related to EXT-2515 "Docked floaters should be resizeable"
avoid undock floater when resize initiated not by user --HG-- branch : product-enginemaster
parent
c76ab6c4b7
commit
215b95eb64
|
|
@ -206,16 +206,6 @@ void LLDockableFloater::draw()
|
|||
LLFloater::draw();
|
||||
}
|
||||
|
||||
void LLDockableFloater::reshape(S32 width, S32 height, BOOL called_from_parent)
|
||||
{
|
||||
if (isDocked())
|
||||
{
|
||||
setDocked(false);
|
||||
}
|
||||
|
||||
LLFloater::reshape(width, height, called_from_parent);
|
||||
}
|
||||
|
||||
void LLDockableFloater::setDockControl(LLDockControl* dockControl)
|
||||
{
|
||||
mDockControl.reset(dockControl);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ public:
|
|||
/* virtula */BOOL postBuild();
|
||||
/* virtual */void setDocked(bool docked, bool pop_on_undock = true);
|
||||
/* virtual */void draw();
|
||||
/* virtual */void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);
|
||||
|
||||
/**
|
||||
* If descendant class overrides setVisible() then it must still invoke its
|
||||
|
|
|
|||
|
|
@ -135,6 +135,12 @@ BOOL LLResizeHandle::handleHover(S32 x, S32 y, MASK mask)
|
|||
LLView* resizing_view = getParent();
|
||||
if( resizing_view )
|
||||
{
|
||||
// undock floater when user resize it
|
||||
if (((LLFloater*)getParent())->isDocked())
|
||||
{
|
||||
((LLFloater*)getParent())->setDocked(false, false);
|
||||
}
|
||||
|
||||
// Resize the parent
|
||||
LLRect orig_rect = resizing_view->getRect();
|
||||
LLRect scaled_rect = orig_rect;
|
||||
|
|
|
|||
Loading…
Reference in New Issue