CHUI-959 FIXED Resident picker allowed to open behind fui toolbars
parent
f159d1b053
commit
f5217acb4e
|
|
@ -1494,7 +1494,7 @@ void LLFloater::addDependentFloater(LLFloater* floaterp, BOOL reposition)
|
|||
floaterp->setRect(gFloaterView->findNeighboringPosition(this, floaterp));
|
||||
floaterp->setSnapTarget(getHandle());
|
||||
}
|
||||
gFloaterView->adjustToFitScreen(floaterp, FALSE);
|
||||
gFloaterView->adjustToFitScreen(floaterp, FALSE, TRUE);
|
||||
if (floaterp->isFrontmost())
|
||||
{
|
||||
// make sure to bring self and sibling floaters to front
|
||||
|
|
@ -2725,7 +2725,7 @@ void LLFloaterView::refresh()
|
|||
|
||||
const S32 FLOATER_MIN_VISIBLE_PIXELS = 16;
|
||||
|
||||
void LLFloaterView::adjustToFitScreen(LLFloater* floater, BOOL allow_partial_outside)
|
||||
void LLFloaterView::adjustToFitScreen(LLFloater* floater, BOOL allow_partial_outside, BOOL snap_in_toolbars/* = false*/)
|
||||
{
|
||||
if (floater->getParent() != this)
|
||||
{
|
||||
|
|
@ -2778,7 +2778,7 @@ void LLFloaterView::adjustToFitScreen(LLFloater* floater, BOOL allow_partial_out
|
|||
}
|
||||
|
||||
// move window fully onscreen
|
||||
if (floater->translateIntoRect( gFloaterView->getRect(), allow_partial_outside ? FLOATER_MIN_VISIBLE_PIXELS : S32_MAX ))
|
||||
if (floater->translateIntoRect( snap_in_toolbars ? getSnapRect() : gFloaterView->getRect(), allow_partial_outside ? FLOATER_MIN_VISIBLE_PIXELS : S32_MAX ))
|
||||
{
|
||||
floater->clearSnapTarget();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -529,7 +529,7 @@ public:
|
|||
LLRect findNeighboringPosition( LLFloater* reference_floater, LLFloater* neighbor );
|
||||
|
||||
// Given a child of gFloaterView, make sure this view can fit entirely onscreen.
|
||||
void adjustToFitScreen(LLFloater* floater, BOOL allow_partial_outside);
|
||||
void adjustToFitScreen(LLFloater* floater, BOOL allow_partial_outside, BOOL snap_in_toolbars = false);
|
||||
|
||||
void setMinimizePositionVerticalOffset(S32 offset) { mMinimizePositionVOffset = offset; }
|
||||
void getMinimizePosition( S32 *left, S32 *bottom);
|
||||
|
|
|
|||
Loading…
Reference in New Issue