samples/hello/hello_layout.rb in glimmer-dsl-swt-4.20.0.2 vs samples/hello/hello_layout.rb in glimmer-dsl-swt-4.20.0.3
- old
+ new
@@ -198,11 +198,15 @@
horizontal_alignment :fill # could be :beginning, :center or :end too
vertical_alignment :fill # could be :beginning, :center, or :end too
grab_excess_horizontal_space true
grab_excess_vertical_space true
}
-# layout_data :fill, :fill, true, true # short alternative of specifying what is above
-
+
+ # this is a short alternative for specifying what is above
+# layout_data(:fill, :fill, true, true) {
+# horizontal_span 5
+# }
+
text "<this label fills all the space it can get\nhorizontally and vertically>"
background :magenta
}
}