mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
improved display of ngcheckbox on hidpi devices
This commit is contained in:
@@ -17,7 +17,7 @@ namespace mRemoteNG.UI.Controls.Base
|
||||
ThemeManager.getInstance().ThemeChanged += OnCreateControl;
|
||||
var display = new DisplayProperties();
|
||||
_checkboxSize = new Size(display.ScaleWidth(11), display.ScaleHeight(11));
|
||||
_checkboxYCoord = Height / 2 - 7;
|
||||
_checkboxYCoord = (display.ScaleHeight(Height) - _checkboxSize.Height) / 2 - display.ScaleHeight(5);
|
||||
_textXCoord = _checkboxSize.Width + display.ScaleWidth(2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user