Move div to the beginning

I got a window and would like to always show it in the upper right corner even when resizing the whole window. Currently my window works fine in the upper left corner, but I would like to show it in the upper right when I click the button, and if the user resizes the whole window, always keep it in the upper right corner, Does anyone know how to do this? Thanks in advance!

Note: - I always want the popup to be draggable.

Here's a live demo: LIVE DEMO

display: boolean = false; public positionLeft = 0; public positionTop = 30; showDialog() { this.display = true; } 
+5
source share
1 answer

You can float the dialog correctly and make it draggable.

Here is a working plunker

+2
source

Source: https://habr.com/ru/post/1276242/


All Articles