From 324c92056658b6b17c542f916eafda06f14556c7 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Thu, 20 Jan 2022 14:18:58 +0100 Subject: [PATCH] Make frame element start with negatov z-index Frames are supposed to be used to group other elements and therefore usually needs to be behind them. --- projects/common/ui-elements/frame/frame-element.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/common/ui-elements/frame/frame-element.ts b/projects/common/ui-elements/frame/frame-element.ts index 04a5f727d..d1b171714 100644 --- a/projects/common/ui-elements/frame/frame-element.ts +++ b/projects/common/ui-elements/frame/frame-element.ts @@ -22,6 +22,8 @@ export class FrameElement extends UIElement implements PositionedElement, Surfac this.positionProps = initPositionedElement(serializedElement); this.surfaceProps = initSurfaceElement(serializedElement); + this.positionProps.zIndex = -1; + this.surfaceProps.backgroundColor = serializedElement.surfaceProps?.backgroundColor as string || 'transparent'; -- GitLab