Skip to content

Commit

Permalink
Fix for #159
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrenda committed Sep 9, 2023
1 parent fd49cd3 commit 86565a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/pronto/signal_connecting/expression_edit.gd
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,14 @@ func resize():
const spacing = 11
custom_minimum_size.y = clamp(text_size.y + spacing, line_height, line_height * max_lines) \
+ randf() # yeah, seriously. if the height does not change, the width collapses.

else:
custom_minimum_size.x = max(custom_minimum_size.x, \
320) # what's the original minimum width (not the custom one)?
Utils.fix_minimum_size(self)
reset_size()
# This reset_size() call seems to be the culprit for https://github.com/hpi-swa-lab/godot-pronto/issues/159
# Maybe this is needed for some resize magic? For now we'll leave it commented out to make the ExpressionEdits usable again.
# reset_size()
var nodeToNodeConfigurator = Utils.parent_that(self, func(n): return n is NodeToNodeConfigurator)
if nodeToNodeConfigurator != null:
nodeToNodeConfigurator.reset_size()
Expand Down

0 comments on commit 86565a2

Please sign in to comment.