Fixed positioning after orientation changes in minimized state

and issue with unexpectd closing to left while horisontal dragging