Skip to content

Commit

Permalink
Ensure webview size is set correctly on resize
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed May 17, 2023
1 parent 8b20ef9 commit 30f3c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bonsai.Editor/GraphView/WorkflowEditorControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public int WebViewSize
set
{
splitContainer.SplitterDistance = value;
splitContainer.Panel1MinSize = splitContainer.SplitterDistance / 2;
splitContainer.Panel1MinSize = value / 2;
}
}

Expand Down Expand Up @@ -277,8 +277,8 @@ protected override void OnLoad(EventArgs e)

protected override void OnSizeChanged(EventArgs e)
{
EnsureWebViewSize();
base.OnSizeChanged(e);
EnsureWebViewSize();
}

protected override void OnKeyDown(KeyEventArgs e)
Expand Down

0 comments on commit 30f3c01

Please sign in to comment.