Html-article looks different in Safari than in the DPS-app

espenmoe

29-06-2015

I have testet an article with responsive html. It scales on my desktop, on Safari for iPhone and on safari for iPad.

In the dps-app, it behaves totally different!

Should not the app treat html-articles the same way as Safari does?

This is how the article looks on Safari (iPad), the way it is intended to look:

IMG_0135.jpg

But in the DPS-app, it looks like this:

IMG_0134.jpg

I'm really no expert, but to me it looks like Safari scales the content so it looks identically on iapd1/2 and on iPad with retina. Why does not the DPS-app do the same?

And here is same article on iPhone (Safari):

IMG_1092.jpg

On the same iPhone, but in the DPS-app:

IMG_1093.jpg

If anyone wants to test fro themselves,her is the url:

DrMobile integration example

Hope someone has a clue 🙂

Espen Moe

DN

Accepted Solutions (0)

Answers (3)

Answers (3)

Ivan_Mironchuk

Employee

01-07-2015

How are you packaging up your HTML articles? Are you using the DPS HTML article packager tool?

Does your CSS contain media queries? If so, it could be something related to that...

We've had many examples of HTML that scales properly in DPS, but it's hard to know what the issue is with your particular HTML.

rperez_bonnier

01-07-2015

I used Chrome to test our responsive HTML tests articles. I also used Dreamweaver to pre preview the HTML as I wrote the CSS to complement the bootstrap template.

When I loaded them in the DPS app, they looked 90 to 95% the same as in Chrome.

But yes, there were noticeable differences in image scaling both on the iPad and the iPhone.

Is there a better way to test how the HTML will actually display when loaded in the DPS app? Perhaps an update to Preview CC?

It would be best if we don't have to go back in the code once an article is closed.