Modified: MacRuby/trunk/lib/hotcocoa/layout_view.rb (610 => 611)
--- MacRuby/trunk/lib/hotcocoa/layout_view.rb 2008-09-20 00:08:49 UTC (rev 610)
+++ MacRuby/trunk/lib/hotcocoa/layout_view.rb 2008-09-20 00:27:42 UTC (rev 611)
@@ -350,6 +350,9 @@
expandable_size -= vertical ? view.frameSize.height : view.frameSize.width
expandable_size -= @spacing
end
+ expandable_size -=
+ vertical ? view.layout.top_padding + view.layout.bottom_padding
+ : view.layout.left_padding + view.layout.right_padding
end
expandable_size /= expandable_views