<% # ======================================================================== # SC.View scrollFrame Unit Test # # scrollFrame represents the frame within the view represented by scrollable # content. If you view is not scrollable, the scrollFrame should always # be eqaul to innerFrame size with a 0,0 origin. # # ======================================================================== %> <% content_for('final') do %> <% end %> <% content_for('body') do %>
<% view :case1, :class => 'case' do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case2, :class => 'case' do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case3, :class => 'case', :properties => { :is_scrollable => true } do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case4, :class => 'case', :properties => { :is_scrollable => true } do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case5, :class => 'case', :properties => { :is_scrollable => true } do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case6, :class => 'case', :properties => { :is_scrollable => true } do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% end %>