[MacRuby-devel] [PATCH] LayoutOptions documentation

Benjamin Stiglitz ben at tanjero.com
Tue Oct 7 15:45:49 PDT 2008


Wrong valid options specified for :expand, tripped me up.

Index: lib/hotcocoa/layout_view.rb
===================================================================
--- lib/hotcocoa/layout_view.rb	(revision 651)
+++ lib/hotcocoa/layout_view.rb	(working copy)
@@ -26,7 +26,7 @@
    #    Whether the view is packed at the start or the end of the  
packing view.
    #    Default value is true.
    #
-  #  :expand -> :vertical, :horizontal, [:vertical, :horizontal]
+  #  :expand -> :height, :width, [:height, :width]
    #    Whether the view's first dimension (width for horizontal and  
height for vertical)
    #    should be expanded to the maximum possible size, and should  
be variable according
    #    to the packing view frame.

-Ben


More information about the MacRuby-devel mailing list