resizing based on orientation setting constraints, little unfruitful