Skip to content

Instantly share code, notes, and snippets.

@topherfangio
Created February 2, 2016 17:24
Show Gist options
  • Save topherfangio/4e39f1dbf7c5830bb8de to your computer and use it in GitHub Desktop.
Save topherfangio/4e39f1dbf7c5830bb8de to your computer and use it in GitHub Desktop.
mainPane: SC.MainPane.design({
childViews: [ 'thescrollview' ],
thescrollview: SC.ScrollView.extend({
hasHorizontalScroller: NO,
hasVerticalScroller: YES,
contentView: SC.View.extend({
childViews: ['labelView', 'theField', 'farlabel', 'theFieldB' ],
childViewLayout: SC.View.VERTICAL_STACK,
labelView: SC.LabelView.design({
layout: { height: 24 },
tagName: "h1",
value: "Top Label"
}),
theField: SC.TextFieldView.extend({
isTextArea: true,
layout: { height: 900 },
value: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}),
farlabel: SC.LabelView.design({
layout: { height: 24 },
tagName: "h1",
value: "Bottom Label"
}),
theFieldB: SC.TextFieldView.extend({
isTextArea: true,
layout: { height: 50 },
value: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}),
}),
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment