<% # ======================================================================== # SC.View clippingFrame Unit Test # # The clippingFrame tells you what portion of the view is actually visible # on screen. If the view is not on screen or is scrolled out of view, # then the size of the clipping frame will be 0. # # ======================================================================== %> <% content_for('final') do %> <% end %> <% content_for('body') do %>
<% view :case1, :class => 'case' do %> <%= view :child, :outlet => true, :inner_html => 'Child', :properties => { :needs_clipping_frame => true } %> <% end %>
<% view :case2, :class => 'case', :properties => { :is_scrollable => true } do %> <%= view :child, :outlet => true, :inner_html => 'Child', :properties => { :needs_clipping_frame => true } %> <% end %>
<% view :case3, :class => 'case', :properties => { :is_scrollable => true } do %> <% view :child, :outlet => true do %> <%= view :nested_child, :outlet => true, :inner_html => 'Nested Child', :properties => { :needs_clipping_frame => true } %> <% end %> <% end %>
<% view :case4, :class => 'case', :properties => { :is_scrollable => true } do %> <%= view :child, :outlet => true, :inner_html => 'Child', :properties => { :needs_clipping_frame => true } %> <% end %>
<% view :case5, :class => 'case', :properties => { :is_scrollable => true } do %> <% view :child, :outlet => true do %> <%= view :nested_child, :outlet => true, :inner_html => 'Nested Child', :properties => { :needs_clipping_frame => true } %> <% end %> <% end %>
<% end %>