web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

air-quality.com - Map is displayed too small

Open webcompat-bot opened this issue 5 years ago • 7 comments

URL: https://air-quality.com/map?center_lon=116.68090000748636&span_lon=4.075848609209061&center_lat=39.653387918297646&span_lat=5.157042907475542

Browser / Version: Firefox Mobile 90.0 Operating System: Android 10 Tested Another Browser: Yes Chrome

Problem type: Design is broken Description: Items not fully visible Steps to Reproduce: The map height is too small on Firefox while it is large enough on Chrome.

View the screenshot Screenshot
Browser Configuration
  • gfx.webrender.all: false
  • gfx.webrender.blob-images: true
  • gfx.webrender.enabled: false
  • image.mem.shared: true
  • buildID: 20210503094544
  • channel: nightly
  • hasTouchScreen: true
  • mixed active content blocked: false
  • mixed passive content blocked: false
  • tracking content blocked: false

View console log messages

From webcompat.com with ❤️

webcompat-bot avatar May 06 '21 16:05 webcompat-bot

Thanks for the report, I was able to reproduce the issue. image

Note: The issue is not reproducible on Chrome.

Tested with: Browser / Version: Firefox Nightly 90.0a1 (🦎 90.0a1-20210505095249) Operating System: Samsung Galaxy S8 (Android 9) - 1440 x 2960 pixels, 18.5:9 ratio (~570 ppi density), Google Pixel 5 (Android 11) - 1080 x 2340 pixels, 19.5:9 ratio (~432 ppi density)

Moving to Needsdiagnosis for further investigation.

softvision-oana-arbuzov avatar May 10 '21 11:05 softvision-oana-arbuzov

Looks like map container has its height defined using calc function, but its parent container doesn't have height property set.

.detail-full-map {
    height: calc(100% - 45px);
    width: 100%;
    border-radius: 8px;
    background: #fff;
    position: relative;
}

Setting height: 100% for .map_wrapper should fix the issue. Or using height: calc(100vh - 45px); instead of % value will give the same result.

I've noticed that the site doesn't have doctype declaration. As for the difference with Chrome, it appears to be that Chrome doesn't require parent element to have explicit height, but only in quirks mode . If I add a doctype, the behaviour matches Firefox. Here is a reduced test case:

<html>
<head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <style>
    .detail-full-map {
      height: calc(100% - 45px);
      width: 100%;
      border-radius: 8px;
      background: rgb(255, 255, 255) none repeat scroll 0% 0%;
      position: relative;
      border: 1px solid red;
    }

  </style>
</head>
<body>
  <div class="detail-full-map" id="map"></div>
</body>
</html>

Lets move this to needscontact and I think adding an intervention also would be useful

ksy36 avatar May 10 '21 17:05 ksy36

From https://air-quality.com/places?lang=en&standard=aqi_us -> Google Play Store app listing (https://play.google.com/store/apps/details?id=com.freshideas.airindex) I've found a contact email address [email protected].

Also confirmed on their (company) website: https://air-matters.com/

reinhart1010 avatar Jun 23 '21 02:06 reinhart1010

Email sent to address provided by reinhart1010

mozilla829 avatar Dec 22 '21 03:12 mozilla829

Thanks for this report. We will look into it.

eternityz avatar Dec 23 '21 00:12 eternityz

The issue has been fixed and it is no longer reproducible:

Screenshot_3

Tested with: Browser / Version: Firefox Nightly 97.0a1 (2015856747 -🦎97.0a1-20220108220226🦎) Operating System: Samsung A51 (Android 11) -1080 × 2400 pixels 20:9 aspect ratio (~405 ppi density)

Closing this as FIXED

softvision-raul-bucata avatar Jan 11 '22 13:01 softvision-raul-bucata