We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dd7b29 commit 2ec7499Copy full SHA for 2ec7499
addons/flowkit/ui/editor.gd
@@ -89,6 +89,10 @@ func _popup_centered_on_editor(popup: Window) -> void:
89
# Calculate centered position within the editor window
90
var centered_pos: Vector2i = window_pos + (window_size - popup_size) / 2
91
92
+ # Ensure popup stays within editor window bounds (handle case where popup is larger than window)
93
+ centered_pos.x = maxi(centered_pos.x, window_pos.x)
94
+ centered_pos.y = maxi(centered_pos.y, window_pos.y)
95
+
96
# Set the popup position and show it
97
popup.position = centered_pos
98
popup.popup()
0 commit comments