Skip to content

Commit

Permalink
fix: prevent side panel from overflowing window with the largest font…
Browse files Browse the repository at this point in the history
… size

fix #543
  • Loading branch information
NathanLovato committed Aug 5, 2022
1 parent cb83a63 commit 625f308
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ui/UIPractice.gd
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,8 @@ func _toggle_distraction_free_mode() -> void:


func _disable_distraction_free_mode() -> void:
_update_slidable_panels()

_is_info_panel_open = true
_tween.stop_all()
_tween.remove_all()

_tween.interpolate_property(
_info_panel_anchors,
Expand Down Expand Up @@ -462,7 +460,7 @@ func _enable_distraction_free_mode() -> void:
_update_slidable_panels()

_is_info_panel_open = false
_tween.stop_all()
_tween.remove_all()

_tween.interpolate_property(
_info_panel_anchors,
Expand Down Expand Up @@ -508,7 +506,7 @@ func _show_solution_panel() -> void:
_update_slidable_panels()

_is_solution_panel_open = true
_tween.stop_all()
_tween.remove_all()

_tween.interpolate_property(
_solution_panel,
Expand Down Expand Up @@ -537,7 +535,7 @@ func _hide_solution_panel() -> void:
_update_slidable_panels()

_is_solution_panel_open = false
_tween.stop_all()
_tween.remove_all()

_tween.interpolate_property(
_solution_panel,
Expand Down

0 comments on commit 625f308

Please sign in to comment.