[macruby-changes] [356] MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jul 10 09:44:29 PDT 2008
Revision: 356
http://trac.macosforge.org/projects/ruby/changeset/356
Author: rich at infoether.com
Date: 2008-07-10 09:44:29 -0700 (Thu, 10 Jul 2008)
Log Message:
-----------
fix layout
Modified Paths:
--------------
MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb
Modified: MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb
===================================================================
--- MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb 2008-07-10 16:36:21 UTC (rev 355)
+++ MacRuby/trunk/sample-macruby/HotCocoa/layout_view.rb 2008-07-10 16:44:29 UTC (rev 356)
@@ -121,7 +121,7 @@
pane.view << layout_view(:mode => :horizontal, :frame => [0, 0, 0, 24], :layout => {:start => false, :other => :fill}) do |view|
view << label(:text => 'Other', :layout => {:other => :align_center})
- view << popup(:items => ['Align Head', 'Align Center', 'Align Tail', 'Fill'], :layout => {:expand => true}) do |p|
+ view << popup(:items => ['Align Head', 'Align Center', 'Align Tail', 'Fill'], :layout => {:expand => true, :other => :align_center}) do |p|
p.on_action do |x|
selected_view.reset_size
selected_view.layout.other = x.items.selected.downcase.tr(' ', '_').intern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080710/8f01f0c5/attachment.html
More information about the macruby-changes
mailing list