Fix Device Dialog resizing layout