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:
parent
63c335959e
commit
2e9174be8d
2 changed files with 23 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue