mirror of https://github.com/grafana/grafana.git
Canvas: Always show rotation in layout editor (#90571)
* Canvas: Always display rotation in layout editor * Simplify condition * Set default rotation from options if null
This commit is contained in:
parent
6b0d20c96a
commit
0edb0c5c4f
|
|
@ -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…
Reference in New Issue