Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

move div to top

Tags:

sass

I got window and would like to always show it on the top-right even when resizing the entire window. Currently my window works fine on the top-left, but I would like to show it on the top right when clicking the button, and if the user resizes the entire window always keep it on the top right corner. Does anyone know how to make this happen? Thanks in advance!

Note: - I always want the pop-up window to be draggable.

Here's a live demo: LIVE DEMO

display: boolean = false;
public positionLeft = 0;
public positionTop = 30;

showDialog() {
    this.display = true;
}
like image 944
Devmix Avatar asked Feb 06 '26 12:02

Devmix


1 Answers

You can float it right to position the dialog and to make it draggable.

Here is the working Plunker

like image 146
Saravanan I Avatar answered Feb 12 '26 09:02

Saravanan I



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!