Skip to content

Commit 7c19748

Browse files
committed
Fix dialog bug
1 parent 2ded437 commit 7c19748

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Metro/Metro_RP2350_Chips_Challenge/dialog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,9 @@ def draw_field(self, field, first_draw=False):
384384
# The box should be on the right of the coordinates
385385
# The width and height should be the size of the box
386386
# The font should be the font to use for the label and the text box
387+
if isinstance(field["padding"], int):
388+
field["padding"] = convert_padding(field["padding"])
389+
387390
if first_draw:
388391
# draw the label
389392
label = TextBox(

0 commit comments

Comments
 (0)