Canvas: Always show rotation in layout editor (#90571)

* Canvas: Always display rotation in layout editor

* Simplify condition

* Set default rotation from options if null
changelog/10118284765/11.1.3
Drew Slobodnjak 10 months ago committed by GitHub
parent 6b0d20c96a
commit 0edb0c5c4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      public/app/plugins/panel/canvas/editor/element/PlacementEditor.tsx

@ -48,6 +48,10 @@ export function PlacementEditor({ item }: Props) {
const { options } = element;
const { placement, constraint: layout } = options;
if (placement) {
placement.rotation = placement?.rotation ?? 0;
}
const reselectElementAfterChange = () => {
setTimeout(() => {
settings.scene.select({ targets: [element.div!] });

Loading…
Cancel
Save