Fix layout issue on WP3.8+

Not sure it's the best way to do it but it seems to work okay.