Skip to content

Instantly share code, notes, and snippets.

@geojeff
Created May 19, 2010 00:13
Show Gist options
  • Save geojeff/405751 to your computer and use it in GitHub Desktop.
Save geojeff/405751 to your computer and use it in GitHub Desktop.
vertical1: SC.FormView.row(SC.View.extend(SC.FlowedLayout, {
60 title: "Vertical, canWrap NO",
61 layout: { height: 100 },
62 childViews: "a b c d".w(),
63 isSpacer: YES,
64 canWrap: NO,
65
66 layoutDirection: SC.LAYOUT_VERTICAL,
67 align: SC.ALIGN_CENTER,
68 defaultFlowSpacing: {
69 left: 40, top: 10, right: 10, bottom: 0
70 },
71 a: SC.ButtonView.design({ flowSpacing: { top: 5, left: 4, right: 3, bottom: 2 }, layout: {width: 150, height: 24}, title: "a" }),
72 b: SC.ButtonView.design({ layout: {width: 190, height: 24}, title: "b" }),
73 c: SC.ButtonView.design({ layout: {width: 120, height: 24 }, title: "c" }),
74 d: SC.ButtonView.design({ layout: {width: 250, height: 24 }, title: "d" })
75 })),
7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment