How to center a Dialog on screen - Forum

Forum Navigation
Climate strike banner
You need to log in to create posts and topics.

How to center a Dialog on screen

1) Add this CSS to Project->Properties->Styles:
.centeredDialog{
position:absolute;
width:500px!important;
height:300px!important;
top:0px;
left:0px;
right:0px;
bottom:0px;
margin:auto;
}
2) Go to the Dialog tab
3) Click on DialogContainer1
4) In Properties->Advanced choose centeredDialog class
You will get a 500x300 px centered Dialog to use as a modal window.