control one() {
label(“one <= 500”)
}
@when window.innerWidth > 500
control one() {
label(“one > 500”)
}

If I place this code inside a screen it doesn’t work, it only gives the “one > 500” one. Outside of screen it works great except from that it no longer change when changing the witdh (or rotation on tablet) as it used to.

Submitted by Terje Pedersen on 5 April 2011 at 08:21

Log in to post comments