FIRE-30746: Fix incorrect chat toast width calculation if UI scaling is != 100%; Thank you Chorazin Allen

meow-7.2.2
Ansariel 2021-02-11 13:10:10 +01:00
parent e275de5a82
commit ef95e10544
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ private:
void LLFloaterIMNearbyChatScreenChannel::reshapePanel(LLFloaterIMNearbyChatToastPanel* panel)
{
S32 percentage = gSavedSettings.getS32("NearbyToastWidth");
panel->reshape(gViewerWindow->getWindowWidthRaw() * percentage / 100, panel->getRect().getHeight(), TRUE);
panel->reshape(gViewerWindow->getWindowWidthScaled() * percentage / 100, panel->getRect().getHeight(), TRUE);
}
void LLFloaterIMNearbyChatScreenChannel::updateSize(LLRect old_world_rect, LLRect new_world_rect)