Make sure that when we open pictures they stay on screen
This commit is contained in:
@@ -66,7 +66,9 @@ void show_picture(const LLUUID& id, const std::string& name)
|
|||||||
S32 left, top;
|
S32 left, top;
|
||||||
gFloaterView->getNewFloaterPosition(&left, &top);
|
gFloaterView->getNewFloaterPosition(&left, &top);
|
||||||
LLRect rect = gSavedSettings.getRect("PreviewTextureRect");
|
LLRect rect = gSavedSettings.getRect("PreviewTextureRect");
|
||||||
(new LLPreviewTexture("preview texture", rect.translate(left - rect.mLeft, rect.mTop - top), name, id))->setFocus(true);
|
auto preview = new LLPreviewTexture("preview texture", rect.translate(left - rect.mLeft, rect.mTop - top), name, id);
|
||||||
|
preview->setFocus(true);
|
||||||
|
gFloaterView->adjustToFitScreen(preview, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//static
|
//static
|
||||||
|
|||||||
Reference in New Issue
Block a user