Skip to content

Commit

Permalink
ViewForm InitializeComponent must happen after setting binxelview_for…
Browse files Browse the repository at this point in the history
…m. (InitializeComponent can cause a resize in some cases?) #30
  • Loading branch information
bbbradsmith committed Nov 6, 2024
1 parent bae83d1 commit 77c998b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dialogs/ViewForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public partial class ViewForm : Form
public ViewForm(BinxelviewForm parent_form, ContextMenuStrip context_strip)
{
binxelview_form = parent_form;
pixelBox.ContextMenuStrip = context_strip;
InitializeComponent();
pixelBox.ContextMenuStrip = context_strip;
}

private void pixelBox_MouseMove(object sender, MouseEventArgs e)
Expand Down

0 comments on commit 77c998b

Please sign in to comment.