Skip to content

Instantly share code, notes, and snippets.

@rklancer
Created May 1, 2010 17:02
Show Gist options
  • Save rklancer/386489 to your computer and use it in GitHub Desktop.
Save rklancer/386489 to your computer and use it in GitHub Desktop.
...
introView: SC.StackedView.design({
layout: { top: 20, bottom: 20 },
childViews: [
SC.LabelView.design(SC.StaticLayout, {
useStaticLayout: YES,
classNames: ['append-to-me'],
escapeHTML: NO,
displayValue: "So, I'm a big ol' string of text. <br><br>And I'm another string of text."
})]
})
...
Later...
> SC.$('.append-to-me').append("<br>If you could just go ahead there and append me this weekend, that would be great. <br> Mmm-kay?")
// Nothing is visible! The introView's inline-styled height does not change to stretch to its childView
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment