Code Snippets

SproutCore 1.6 Layout Fix

This code below allows apps to fit to scale when viewed on tablets or phones. For the full blog post, click here.

myView: SC.ScrollView.design({ layout: {top: 0.25, left: 0.25, right: 0.25, bottom: 0.25}, ... })
Resource Tags: