partnerStations Block Mobile Page Incorrect Scaling

Post Reply
jmcafee
Observer
Observer
Posts: 22
Joined: Fri Sep 08, 2017 5:01 am
Location: West Linn, Oregon
Station model: Davis Vantage Pro 2
Software: Meteohub
Contact:

partnerStations Block Mobile Page Incorrect Scaling

Post by jmcafee » Thu Oct 12, 2017 4:10 am

partnerStations Block 3.0, MT 16.0
Android 7.0, Chrome 61.0.3, FF 56

The block scales correctly in the desktop page.

In a mobile page the block size is 100%. In the portrait view all text and most graphics are extremely small and unreadable without zoom. In the landscape view the text is larger and readable, but still much smaller than text in other blocks. All other blocks that I use in a mobile page scale correctly.

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: partnerStations Block Mobile Page Incorrect Scaling

Post by Jachym » Thu Oct 12, 2017 8:57 am

The blocks are always set to scale to 100% of the column width, if a particular block does not scale well and is too small you need to put it in a wider column.

jmcafee
Observer
Observer
Posts: 22
Joined: Fri Sep 08, 2017 5:01 am
Location: West Linn, Oregon
Station model: Davis Vantage Pro 2
Software: Meteohub
Contact:

Re: partnerStations Block Mobile Page Incorrect Scaling

Post by jmcafee » Sun Oct 22, 2017 12:23 am

Jachym,

There is only a single column spanning the entire page width. So your suggestion to put it in a wider column is not possible. I even put it in the footer, with the same result of incorrect scaling.

jmcafee
Observer
Observer
Posts: 22
Joined: Fri Sep 08, 2017 5:01 am
Location: West Linn, Oregon
Station model: Davis Vantage Pro 2
Software: Meteohub
Contact:

Re: partnerStations Block Mobile Page Incorrect Scaling

Post by jmcafee » Sun Oct 22, 2017 1:52 am

The block scales correctly with the following modification of the code:

mainMobile.php: comment out line 339 "font-size: 1.5vw;"

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: partnerStations Block Mobile Page Incorrect Scaling

Post by Jachym » Sun Oct 22, 2017 10:06 am

This is a relative statement.... the problem is that it works for you, but it would not work for other people. As mentioned in other threads, Ive experimented with this font size value many times and it always results in one person being happy and a different person with different browser and phone telling me I broke it... if the change you made works for you - great. But there is no point in making this change globally.

jmcafee
Observer
Observer
Posts: 22
Joined: Fri Sep 08, 2017 5:01 am
Location: West Linn, Oregon
Station model: Davis Vantage Pro 2
Software: Meteohub
Contact:

Re: partnerStations Block Mobile Page Incorrect Scaling

Post by jmcafee » Mon Oct 23, 2017 4:24 am

With all due respect, Jachym, please look at this and tell me if it is readable in mobile browser (it is clearly different from other blocks): http://jsmcafee.com/mtemplate/sunriver/indexMobile.php

User avatar
John B
Forecaster
Forecaster
Posts: 211
Joined: Sun Aug 20, 2017 11:59 pm
Location: Blaxland, N.S.W., Australia
Station model: La Crosse WS2355
Software: Weather Display
Contact:

Re: partnerStations Block Mobile Page Incorrect Scaling

Post by John B » Tue Oct 24, 2017 1:01 am

jmcafee,

Undoubtedly you are not aware (and I'm not blaming you for that) but Jáchym cannot do as you request as he doesn't have a mobile system - nor do I for that matter.

Over time he has stated many times that the the mobile pages are not tested fully. He has also advised that Meteotemplate is not designed for mobile (or other small-screen devices) but that the files are provided and are open to users of the program to adapt/amend them to suit their own purpose. The caveat to that, though, is that any changes to those pages will necessitate the user re-writing their modifications should they be adopted.

I hope that clarifies things a bit for you.

John

Post Reply