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:
@@ -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!] });
|
||||
|
||||
Reference in New Issue
Block a user