1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Improved resizing when UI scale changes

This commit is contained in:
Brian Fiete 2022-08-24 07:42:57 -07:00
parent 63c335959e
commit 2e9174be8d
2 changed files with 23 additions and 18 deletions

View file

@ -50,9 +50,6 @@ namespace Beefy.theme.dark
get => mIcon;
set
{
if (mIcon == value)
return;
mIcon = value;
if (mIcon != null)
@ -80,7 +77,7 @@ namespace Beefy.theme.dark
float width = mPadding.Left + mIcon.mWidth + mPadding.Right;
float height = mPadding.Top + mIcon.mHeight + mPadding.Bottom;
Resize(0, 0, width, height);
Resize(mX, mY, width, height);
}
public override void Draw(Graphics g)