adjusts positioning for panel