mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-20 20:55:05 -04:00
Fix classic scaling on high dpi displays
This commit is contained in:
1 parent
bfa7f5cca9
commit
27c74e52ca
55 files changed
+2290
-1947
No files matched your search
@@ -108,7 +108,7 @@ namespace LibationWinForms.ProcessQueue
|
||||
|
||||
|
||||
var control = InitControl(0);
|
||||
VirtualControlHeight = control.Height + control.Margin.Top + control.Margin.Bottom;
|
||||
VirtualControlHeight = this.DpiUnscale(control.Height + control.Margin.Top + control.Margin.Bottom);
|
||||
TopMargin = control.Margin.Top;
|
||||
|
||||
BookControls.Add(control);
|
||||
@@ -123,7 +123,7 @@ namespace LibationWinForms.ProcessQueue
|
||||
|
||||
vScrollBar1.Scroll += (_, s) => SetScrollPosition(s.NewValue);
|
||||
vScrollBar1.SmallChange = SmallScrollChange;
|
||||
panel1.Height += NUM_BLANK_SPACES_AT_BOTTOM * VirtualControlHeight;
|
||||
panel1.Height += this.DpiScale(NUM_BLANK_SPACES_AT_BOTTOM * VirtualControlHeight);
|
||||
}
|
||||
|
||||
private ProcessBookControl InitControl(int locationY)
|
||||
|
||||
Reference in new issue
Block a user