Skip to content

Commit

Permalink
Added a call to the method to close the dialog when the screen is res…
Browse files Browse the repository at this point in the history
…ized
  • Loading branch information
HeaTTheatR committed Oct 29, 2020
1 parent bef8361 commit 1d097cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sweetalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ def __init__(self, **kwargs):
button.bind(on_release=lambda x=button: self.window_control_callback(x))
button_box.add_widget(button)

Window.bind(on_resize=lambda *args: self.dismiss())

def fire(
self,
title="",
Expand Down

0 comments on commit 1d097cf

Please sign in to comment.