Skip to content
Snippets Groups Projects
Commit 910f25a3 authored by Alexei Arabadji's avatar Alexei Arabadji
Browse files

fixed EXT-2515 "Docked floaters should be resizeable"

undock floater when user resize floater by resize bar;

--HG--
branch : product-engine
parent 8cd7a2b5
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,12 @@ BOOL LLResizeBar::handleHover(S32 x, S32 y, MASK mask) ...@@ -143,6 +143,12 @@ BOOL LLResizeBar::handleHover(S32 x, S32 y, MASK mask)
if( valid_rect.localPointInRect( screen_x, screen_y ) && mResizingView ) if( valid_rect.localPointInRect( screen_x, screen_y ) && mResizingView )
{ {
// undock floater when user resize it
if (((LLFloater*)getParent())->isDocked())
{
((LLFloater*)getParent())->setDocked(false, false);
}
// Resize the parent // Resize the parent
LLRect orig_rect = mResizingView->getRect(); LLRect orig_rect = mResizingView->getRect();
LLRect scaled_rect = orig_rect; LLRect scaled_rect = orig_rect;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment