Fixed resizing of controls. Make sure content is visible first.