]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.tracks: don't convert dims to floats in track-pref-dims-2.
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 18 May 2020 03:47:22 +0000 (20:47 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 18 May 2020 03:47:22 +0000 (20:47 -0700)
basis/ui/gadgets/tracks/tracks.factor

index b7b68fa62d62093524aa27ed873bbff01e4ad66c..11ff0fb51dbbd9c7b8b8b7fe7dd51c0580d846d9 100644 (file)
@@ -45,7 +45,7 @@ M: track layout* ( track -- ) dup track-layout pack-layout ;
     [
         [ children>> pref-dims ] [ normalized-sizes ] bi
         [ dup { 0 f } member? [ 2drop { 0 0 } ] [ v/n ] if ] 2map
-        max-dims [ >fixnum ] map
+        max-dims
     ] [ gap-dim ] bi v+ ;
 
 M: track pref-dim* ( gadget -- dim )