It looks like you tried this and then figured out that orientation changes produce a resize event. As long as we're handling the resize event, we should be good.