Skip to content

Commit

Permalink
Fix min sidebar width correction
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Sep 22, 2024
1 parent 31a75d5 commit 233a743
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion NAPS2.Lib/EtoForms/Layout/LayoutLeftPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public LayoutLeftPanel(LayoutElement left, LayoutElement right)
public override void DoLayout(LayoutContext context, RectangleF bounds)
{
var w = MeasureWidth(context, bounds, _left);
if (_splitter.Position < w) _splitter.Position = w;
if (_splitter.Position < w)
{
_left.Width = _splitter.Position = w;
}
_splitter.Panel1MinimumSize = w;
_splitter.Panel2MinimumSize = (int) (100 * context.Scale);

Expand Down

0 comments on commit 233a743

Please sign in to comment.