Skip to content
Snippets Groups Projects
Commit c1c3d3d2 authored by jojohoch's avatar jojohoch
Browse files

[player] Move 'cdk-overlay-pane' when dragging aspect keypad

- A floating keypad is generated inside a div with the class
  'cdk-overlay-pane'. Now the position of this div is updated when
  dragging the keypad.
parent 75e44b2c
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
[cdkConnectedOverlayOpen]="isKeypadOpen && keypadService.position === 'floating'"> [cdkConnectedOverlayOpen]="isKeypadOpen && keypadService.position === 'floating'">
<aspect-keypad <aspect-keypad
cdkDrag cdkDrag
cdkDragRootElement=".cdk-overlay-pane"
[positionOffset]="keypadService.elementComponent.elementModel.type === 'text-field' ? 20 : 0" [positionOffset]="keypadService.elementComponent.elementModel.type === 'text-field' ? 20 : 0"
[inputElement]="keypadService.inputElement" [inputElement]="keypadService.inputElement"
[position]="keypadService.position" [position]="keypadService.position"
......
...@@ -12,7 +12,7 @@ body { ...@@ -12,7 +12,7 @@ body {
margin-top: 8px !important; margin-top: 8px !important;
font-size: 12px; font-size: 12px;
background-color: white; background-color: white;
color: #f44336 !important;; color: #f44336 !important;
} }
.active-anchor { .active-anchor {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment