Yeah, I think I was wrong there, sorry. My last suggestion is that you look at your designer scripts, and code, to make sure you don't change the height of the parent. Looking at your screenshots, it doesn't seem as high as it is in the designer. It does, however, look as wide, so I'm thinking that there is something adjusting the height. That would also explain why the switch have correct distance to parent top, and not to parent bottom.