Preserve minimum floater size for texture preview floater

meow-7.2.2
Ansariel 2012-01-13 16:33:59 +01:00
parent 288ffedff6
commit f8e3d70c1d
1 changed files with 4 additions and 0 deletions

View File

@ -562,6 +562,10 @@ void LLPreviewTexture::updateDimensions()
floater_target_height = mImage->getFullHeight() / 2 + 3 * CLIENT_RECT_VPAD + PREVIEW_BORDER + dimensions_panel->getRect().mTop + getChildView("desc")->getRect().getHeight();
}
// Preserve minimum floater size
floater_target_width = llmax(floater_target_width, getMinWidth());
floater_target_height = llmax(floater_target_height, getMinHeight());
// Resize floater
if (getHost())
{