PDA

View Full Version : Dialog position



Tom Murphy
21-Apr-2014, 11:43 PM
Hi DAW

Just moving up to beta 2 and can see the change responsive design changes, but I now have a problem.

We decided to make the width of the overall WebApp to 1000 and then center it in the page by modifying the index.html as per below...



<body>

<div id="container" style=" width:1000px; margin-left: auto; margin-right: auto;">
<div id="header" style="position: absolute; height: 160px; width: 1000px; margin-left: auto; margin-right: auto; background-color:#FFFFFF;">
<img src="images/Top_Logo_bar.png">
</div>
<div id="viewport" style="position: absolute; top: 160px; bottom: 0px; width: 1000px; margin-left: auto; margin-right: auto; background-color:#FFFFFF;"></div>
</div>

</body>


In 17.1 when I go to the website it looks like this ...
7626

But in 18.0 it looks like this when loading the website ...
7627

I can see their are new properties in the cWebApp class, piScreenWidth and piWindowWidth.

What do I need to do to get this to work, or is there a better way of what I am trying to do?

Harm Wibier
22-Apr-2014, 03:08 AM
Hi Thomas,

We've changed the way dialogs are positioned from fixed to absolute to improve their behavior (zoom & pan) on mobile devices. Your post points us towards some side effects that don't make me happy and we'll look into it.

Regards,

Tom Murphy
22-Apr-2014, 09:34 AM
Hi Harm

Sounds good, thanks.

Sent from my GT-I9505 using Tapatalk

Tom Murphy
27-Apr-2014, 07:28 PM
Hi Harm

This is working a lot better now in B3, thanks.