[macruby-changes] [611] MacRuby/trunk/lib/hotcocoa/layout_view.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 19 17:27:43 PDT 2008
Revision: 611
http://trac.macosforge.org/projects/ruby/changeset/611
Author: lsansonetti at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080919/e206aaed/attachment.html
More information about the macruby-changes
mailing list