Fix action panel rotation layout issue