I'm trying to display the dialog in modal mode at the center of the page with position fixed, but I'm not able to get it to work properly. As a workaround, I currently set
position: "top"
so at least it's stuck to the top of the viewport. When I use center option, it simply uses the 50% of the height as top property. Since my pages are around 7000px, it's way out of the viewport and user is not able to see it.
Does anyone have a good suggestion on how to achieve this? I have tried CSS option, but since top property is set dynamically, CSS is simply not taking any effect.
I have also tried centering it to the overlay, but since ui-overlay element doesn't exist until the modal is initialized, I'm not able to use it as an archer for centering.
Just FYI, I'm trying to do this as a workaround for positioning bug of link widget of hallojs.