Skip to content

Instantly share code, notes, and snippets.

@lawrencepit
Created August 22, 2008 00:50
Show Gist options
  • Save lawrencepit/6681 to your computer and use it in GitHub Desktop.
Save lawrencepit/6681 to your computer and use it in GitHub Desktop.
// haml style:
- view :workspace_container1, :class => 'workspace_container', :top => 40, :left => 0 do
- split_view :workspace1, :class => 'sc-app-workspace', :splitter => :thick, :direction => :vertical do
- scroll_view :top_view1, :class => 'list_view', :height => 100 do
- view :list_view1 do
<p>This view can be collapsed. It has no min or max thickness.</p>
= content
= split_divider_view :divider1, :top => 100
- scroll_view :bottom_view1, :class => 'details_view', :top => 109 do
- view :details_view1 do
<p>This view cannot be collapsed (because the top view above will be chosen
as the view that is collapsable). It has no min or max thickness.</p>
= content
// rhtml style:
<% view :workspace_container1, :class => 'workspace_container', :top => 40, :left => 0 do %>
<% split_view :workspace1, :class => 'sc-app-workspace', :splitter => :thick, :direction => :vertical do %>
<% scroll_view :top_view1, :class => 'list_view', :height => 100 do %>
<% view :list_view1 do %>
<p>This view can be collapsed. It has no min or max thickness.</p>
<%= content %>
<% end %>
<% end %>
<%= split_divider_view :divider1, :top => 100 %>
<% scroll_view :bottom_view1, :class => 'details_view', :top => 109 do %>
<% view :details_view1 do %>
<p>This view cannot be collapsed (because the top view above will be chosen
as the view that is collapsable). It has no min or max thickness.</p>
<%= content %>
<% end %>
<% end %>
<% end%>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment