lib/teacup/layout.rb in teacup-2.1.13 vs lib/teacup/layout.rb in teacup-2.1.14

- old
+ new

@@ -253,10 +253,10 @@ # horizontal "|-margin-[bottom]-margin-|" # end def auto(layout_view=top_level_view, layout_subviews={}, &layout_block) raise "gem install 'motion-layout'" unless defined? Motion::Layout - styled_subviews = layout_view.subviews.select { |v| v.stylename } + styled_subviews = layout_view.teacup_subviews.select { |v| v.stylename } styled_subviews.each do |view| if ! layout_subviews[view.stylename.to_s] layout_subviews[view.stylename.to_s] = view end end