Skip to content

Commit

Permalink
[HaCreator] Fix missing text with object and portal editor panel
Browse files Browse the repository at this point in the history
  • Loading branch information
lastbattle committed Feb 21, 2022
1 parent 5cd4a96 commit 28bfb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HaCreator/CustomControls/ThumbnailFlowLayoutPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ public ImageViewer Add(Bitmap bitmap, String name, bool Text)

imageViewer.Image = fallbackBmp; // fallback in case its null
imageViewer.Width = fallbackBmp.Width + 8;
imageViewer.Height = fallbackBmp.Height + 8 + ((Text) ? 12 : 0);
imageViewer.Height = fallbackBmp.Height + 8 + ((Text) ? 16 : 0);
}
else
{
imageViewer.Image = new Bitmap(bitmap); // Copying the bitmap for thread safety
imageViewer.Width = bitmap.Width + 8;
imageViewer.Height = bitmap.Height + 8 + ((Text) ? 12 : 0);
imageViewer.Height = bitmap.Height + 8 + ((Text) ? 16 : 0);
}
imageViewer.IsText = Text;
imageViewer.Name = name;
Expand Down

0 comments on commit 28bfb5b

Please sign in to comment.