]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.panes: relayout when changing label contents
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 1 Aug 2022 04:52:04 +0000 (21:52 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 1 Aug 2022 04:52:04 +0000 (21:52 -0700)
basis/ui/gadgets/panes/panes.factor

index 138e4e96704ced362ac4deb5e1e5014e8665d443..69d9557b6d3aa705c433a002b4d55f86bc69f42a 100644 (file)
@@ -376,7 +376,7 @@ M: styled-pane pane-label style>> "" <styled-label> ;
 
 : pane-text ( string style gadget -- )
     dup find-styled-label [ pick over style>> = ] [ f f ] if* [
-        2nip [ prepend ] change-text drop
+        2nip [ prepend ] change-text relayout
     ] [
         drop [ swap <styled-label> ] [ swap add-gadget drop ] bi*
     ] if ;