Revision: 611 http://trac.macosforge.org/projects/ruby/changeset/611 Author: lsansonetti@apple.com Date: 2008-09-19 17:27:42 -0700 (Fri, 19 Sep 2008) Log Message: ----------- consider paddings when calculating the expandable size Modified Paths: -------------- MacRuby/trunk/lib/hotcocoa/layout_view.rb Modified: MacRuby/trunk/lib/hotcocoa/layout_view.rb =================================================================== --- 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