Last modified: 2014-02-12 23:55:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54572, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52572 - Some infoboxes are clipped on some smartphones (wrong "min-resolution" value?)
Some infoboxes are clipped on some smartphones (wrong "min-resolution" value?)
Status: RESOLVED DUPLICATE of bug 36936
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
Smartphone other
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
http://en.m.wikipedia.org/wiki/Bill_G...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-06 04:15 UTC by Kang Su Gatlin
Modified: 2014-02-12 23:55 UTC (History)
12 users (show)

See Also:
Web browser: Internet Explorer
Mobile Platform: Windows Phone 8
Assignee Huggle Beta Tester: ---


Attachments
A screenshot showing the infobox being clipped on the right. The rest of the page seems fine. (207.39 KB, image/jpeg)
2013-08-06 04:28 UTC, Kang Su Gatlin
Details
Lumia 920 hitting www.mediaqueriestest.com. (178.44 KB, image/jpeg)
2013-08-17 00:27 UTC, Kang Su Gatlin
Details

Description Kang Su Gatlin 2013-08-06 04:15:46 UTC

    
Comment 1 Kang Su Gatlin 2013-08-06 04:28:03 UTC
Created attachment 13064 [details]
A screenshot showing the infobox being clipped on the right.  The rest of the page seems fine.
Comment 2 Kang Su Gatlin 2013-08-06 04:41:44 UTC
You can see this on several pages like Bill Gates, Jay Z, tiger, rose, and Steve Jobs pages (pretty much any page with an infobox on the top).

As the page is loading the infobox is rendered correctly, but as the page completes its loading it re-renders much larger and is clipped on the right side.

It doesn't happen on all phones, but can repro consistently on phones where it is an issue.

It appears to be related to the computed devicepixelratio:

devicePixelRatio=function(){if(window.devicePixelRatio!==undefined){return window.devicePixelRatio;}else if(window.msMatchMedia!==undefined){if(window.msMatchMedia('(min-resolution: 192dpi)').matches){return 2;}else if(window.msMatchMedia('(min-resolution: 144dpi)').matches){return 1.5;}else{return 1;}}else{return 1;}};$.fn.hidpi=function(){

This value returns '2' on phones where this is a problem.  If the value is changed to 1.5, it renders fine.
Comment 3 Andre Klapper 2013-08-06 11:37:39 UTC
Thanks for taking the time to report this and the initial analysis!

Could you tell us on which phones you can reproduce this?
Comment 4 Andre Klapper 2013-08-06 12:48:24 UTC
Also, bug 52075 comes to my mind. Might be unrelated though.
Comment 5 Jon 2013-08-14 18:55:50 UTC
What type of phone and which browser are you seeing this problem on?
Comment 6 Kang Su Gatlin 2013-08-17 00:27:40 UTC
Created attachment 13115 [details]
Lumia 920 hitting www.mediaqueriestest.com.

Screenshot of Lumia 920 hitting the www.mediaqueriestest.com site.  This is the 920 with the updated version of the browser.
Comment 7 Kang Su Gatlin 2013-08-17 00:27:59 UTC
Hi Jon and Andre, sorry for the late response.

I can reproduce this on most Windows Phones, e.g., the Nokia Lumia 920, although it is in a build of the OS that hasn't been released (so you won't see this issue on a phone that you have available to you).  This is work we've previously discussed to improve the @viewport device-width issue reported in the past (see http://mattstow.com/responsive-design-in-ie10-on-windows-phone-8.html for a description of the issue).  With this change device-width returns 371px rather than 768px on the Lumia 920.

The browser we're using is IE10 in Windows Phone 8.  

I've also attached a screenshot from mediaqueriestest.com that might be helpful.

I hope this is useful.  I can certainly work to dig up more information if it will help.
Comment 8 Andre Klapper 2013-08-19 08:51:49 UTC
http://mattstow.com/responsive-design-in-ie10-on-windows-phone-8.html also implies that this is a Windows 8 problem only: "Windows Phone 8, which for some reason behaves differently to every other mobile OS".

> It doesn't happen on all phones, but can repro consistently on phones 
> where it is an issue.

Could you categorize this a bit more? 
Has this only happened on Windows 8 phones? 
Or also on other Windows Phone versions (7) or systems (Android, iOS, etc)?

(In reply to comment #1)
> Created attachment 13064 [details]
> A screenshot showing the infobox being clipped on the right.

As already written in the linked blogpost, this seems to be no issue with Windows Phone 7: Trying on http://en.m.wikipedia.org/wiki/Bill_Gates with a Nokia Lumia 800, which according to mediaqueriestest.com has 
   device-width in px: 480px
   width in px: 1024px
I cannot reproduce the problem. (I don't have a Windows Phone 8 phone here.)
Comment 9 Andre Klapper 2013-08-19 09:20:43 UTC
Potential dup of bug 36936?
Comment 10 Jon 2013-08-26 20:48:41 UTC
Yes.. could also be a duplicate of bug 49440 - either way i think this is a mixture of these 2 bugs.
Comment 11 Arthur Richards 2013-09-07 00:04:55 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://mingle.corp.wikimedia.org/projects/mobile//1180
Comment 12 Arthur Richards 2013-09-07 00:31:02 UTC
Correction:
https://mingle.corp.wikimedia.org/projects/mobile/cards/1180
Comment 13 Jon 2013-09-09 17:49:05 UTC

*** This bug has been marked as a duplicate of bug 36936 ***
Comment 14 Kang Su Gatlin 2013-09-09 18:14:57 UTC
(In reply to comment #8)
> http://mattstow.com/responsive-design-in-ie10-on-windows-phone-8.html also
> implies that this is a Windows 8 problem only: "Windows Phone 8, which for
> some
> reason behaves differently to every other mobile OS".
> 
> > It doesn't happen on all phones, but can repro consistently on phones 
> > where it is an issue.
> 
> Could you categorize this a bit more? 
> Has this only happened on Windows 8 phones? 
> Or also on other Windows Phone versions (7) or systems (Android, iOS, etc)?


This only happens on Windows 8 phones with a new update of the OS (which hasn't rolled out yet).  I have tried to see if I can find a repro on other non-WP devices, but I haven't found a repro thus far on another device.

> 
> (In reply to comment #1)
> > Created attachment 13064 [details]
> > A screenshot showing the infobox being clipped on the right.
> 
> As already written in the linked blogpost, this seems to be no issue with
> Windows Phone 7: Trying on http://en.m.wikipedia.org/wiki/Bill_Gates with a
> Nokia Lumia 800, which according to mediaqueriestest.com has 
>    device-width in px: 480px
>    width in px: 1024px
> I cannot reproduce the problem. (I don't have a Windows Phone 8 phone here.)

WP7 doesn't have this issue.  Nor does the current shipping version of WP8.  We fixed the WP8 behavior for @viewport width in this upcoming version, and that seems to be causing the problem (as related to the computed devicepixelratio I noted earlier).
Comment 15 Brion Vibber 2013-09-09 18:17:21 UTC
Would it be possible for us to get access to this WP8 build to test? Emulator would be fine...
Comment 16 Kang Su Gatlin 2013-09-14 05:06:46 UTC
I'm working on it... Would you, Brion, be the contact person to discuss this more?
Comment 17 Kang Su Gatlin 2013-09-25 18:19:29 UTC
So it's weird... yesterday morning I could repro this bug, but then last night the bug stopped repro'ing.  I literally have two tabs open on my phone -- one with the repro and one that renders as desired.

Was there a fix that went in for this yesterday?
Comment 18 Andre Klapper 2013-09-25 23:16:39 UTC
(In reply to comment #17)
> Was there a fix that went in for this yesterday?

Wild guess: Bug 49440 comment 30 was resolved and deployed yesterday.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links