Last modified: 2013-10-10 00:04:34 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 T22234, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20234 - Clickable tabs overlap for small screen resolutions
Clickable tabs overlap for small screen resolutions
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.21.x
All All
: Normal normal with 2 votes (vote)
: 1.22.0 release
Assigned To: Bartosz Dziewoński
:
: 21297 29333 52233 53630 (view as bug list)
Depends on:
Blocks: 44386
  Show dependency treegraph
 
Reported: 2009-08-14 07:38 UTC by Purodha Blissenbach
Modified: 2013-10-10 00:04 UTC (History)
15 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Old tabs' behavior (6.88 KB, image/png)
2009-08-14 07:38 UTC, Purodha Blissenbach
Details
avoid collision of tabs (1.38 KB, patch)
2010-09-26 14:57 UTC, Derk-Jan Hartman
Details
Tabs' behavior after Iedaebefc was merged (39.01 KB, image/png)
2013-07-31 22:08 UTC, Bartosz Dziewoński
Details

Description Purodha Blissenbach 2009-08-14 07:38:14 UTC
Created attachment 6458 [details]
Old tabs' behavior
Comment 1 Derk-Jan Hartman 2010-05-14 01:34:38 UTC
I was thinking about this....

Shouldn't left and right navigation div be wrapped in a parent div ?
The parent div then gets the: "left: 10em; position: absolute; top: 2.5em;" styling. 

The "width detection routine" that also collapses the tabs etc, could then find when there are no more collapsible elements to push away, and then set "min-width" on this new parent element. This would then prevent the content being pushed into eachother, and scrollbars will be needed in the browser window.
Comment 2 Derk-Jan Hartman 2010-05-14 10:01:28 UTC
<div style="position:absolute;top:2.5em:width:100%;min-width:45em">

<div id="left-navigation">  position:absolute;left:10em; (no top)

<div id="right-navigation"> no margin-top

</div>

min-width would have to have a default value, and can then be "adapted" by the collapsible code. Tested this with Safari 4 and it worked really well. But needs crossbrowser testing of course.
Comment 3 Derk-Jan Hartman 2010-09-26 14:57:53 UTC
Created attachment 7704 [details]
avoid collision of tabs

This patch avoids that Vector header tabs collide and thus overlap and become inaccessible.

* When collapsible tabs JS is enabled, the value of min-width of div#top-navigation should be changed to 41em.
* Should work for all modern browsers https://developer.mozilla.org/en/CSS/min-width
* Does not account for added portlet links that are forced visible (think Twinkle menu, or portlets added when collapsibletabs are not enabled)
* Does not account for an enlarged Search field.
* p-personal will run "underneath" the tabs on small windows.

I consider this solution imperfect because of the last three points, but at least it will improve Vector on the iphone from the current situation.
Comment 4 Roan Kattouw 2010-09-27 08:41:23 UTC
(In reply to comment #3)
> Created attachment 7704 [details]
> avoid collision of tabs
> 
> This patch avoids that Vector header tabs collide and thus overlap and become
> inaccessible.
> 
Thanks for this patch. Tagging need-review and calling on Trevor to review it.
Comment 5 Trevor Parscal 2010-09-27 21:22:49 UTC
All the patch does is assume 44em will be enough space for the tabs to be rendered. In some languages this will be more than needed, resulting in a horizontal scroll bar prematurely, while in some languages it still may not be enough space. This problem exists, but this patch is not a viable solution.
Comment 6 p858snake 2011-04-30 00:09:40 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 7 Bugmeister Bot 2011-08-19 19:12:46 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 8 Rob Moen 2012-01-14 00:59:54 UTC
Marking as reviewed.  Per comment #5
Comment 9 Andre Klapper 2012-12-15 10:52:25 UTC
*** Bug 21297 has been marked as a duplicate of this bug. ***
Comment 10 Bartosz Dziewoński 2013-01-26 16:17:03 UTC
I'll try working on this, but no promises. The code around this is *awful*.

Related bug: bug 44385.

[Removing 'patch' keyword as the patch has been proven non-viable.]
Comment 11 Bartosz Dziewoński 2013-01-26 16:26:51 UTC
Partial fix: Iedaebefc (core) & Ie34dce9a (Vector ext.).

With these two, instead of overlapping, the "right" navigation will be displayed below the "left" one. It might overlap page's title, but this is better than rendering critical functions unreachable.
Comment 12 Bartosz Dziewoński 2013-02-06 09:15:40 UTC
*** Bug 29333 has been marked as a duplicate of this bug. ***
Comment 13 Jon 2013-06-06 20:45:25 UTC
I'm not sure what devices you see this as being a problem for. When does the window become this narrow? Also if the screen IS narrow. Is the problem a far bigger one then a case of stopping the menus overlapping?

My investigations show that the menu's only overlap (on enwiki) when a desktop screen resolution is below 659px. This will fluctuate on other language projects I'd be surprised if the numbers vary that much.

On mobile and tablets this less of a problem as they also have a viewport resolution.

Are we saying we want to support < 800px width screen resolutions?

According to http://webdev-il.blogspot.com/2011/04/mobile-web-design-viewport-size-vs.html 

I tried various mobile devices - opera mobile, iphone, ipad, android browser and IE7 mobile and none of them had a problem with the Vector skin.


So I repeat - please be clearer. What do we see as being the exact problem here?
Comment 14 Jon 2013-06-06 20:48:41 UTC
Bit of my message got clipped:

.... According to
http://webdev-il.blogspot.com/2011/04/mobile-web-design-viewport-size-vs.html the viewport size only goes below this for IE Mobile browsers. Although I was unable to check this, this article claims it has a viewport of 320px and I figure rendering at that width is a far bigger problem then fixing the menus!
...
Comment 15 Bartosz Dziewoński 2013-06-08 20:01:55 UTC
(In reply to comment #13)
> I'm not sure what devices you see this as being a problem for. When does the
> window become this narrow? Also if the screen IS narrow. Is the problem a far
> bigger one then a case of stopping the menus overlapping?
>
> My investigations show that the menu's only overlap (on enwiki) when a
> desktop
> screen resolution is below 659px. This will fluctuate on other language
> projects I'd be surprised if the numbers vary that much.

If the Vector extension is not installed (or JS disabled), it starts overlapping at 696px for me, and it's much quicker in other languages (779px in Polish, for example). English is in my experience one of the tersest Latin-alphabet-using languages out there.


> Are we saying we want to support < 800px width screen resolutions?

Sort of; we certainly want them to degrade gracefully, especially if it has no cost otherwise. Obstructing clickable links is not graceful; shifting the layout slightly is.
Comment 16 Jon 2013-06-08 20:11:38 UTC
Do we have any data on how many people are effected by this or could we collect some data via EventLogging? It would be great to understand the extent of this problem some more. I'm curious to how many < 800px width screen resolutions there are out there in the wild using Wikipedia and what browser they are using.
Comment 17 Bartosz Dziewoński 2013-06-08 20:29:27 UTC
(In reply to comment #16)
> Do we have any data on how many people are effected by this or could we
> collect some data via EventLogging?

Probably not many, and you probably could (but it's not an unreasonable assumption that such machines could have JS disabled, skewing your counts).

Personally I can say that this has been annoying me when I intentionally opened Wikipedia in a small window, for example to view several articles side-by-side.
Comment 18 Bartosz Dziewoński 2013-07-29 18:02:17 UTC
*** Bug 52233 has been marked as a duplicate of this bug. ***
Comment 19 Bartosz Dziewoński 2013-07-29 18:03:25 UTC
The patch at Iedaebefc is still not merged after over half a year, by the way.
Comment 20 Gerrit Notification Bot 2013-07-31 21:02:50 UTC
Change 45944 merged by TheDJ:
vector: Move right tabs from behind to below left tabs

https://gerrit.wikimedia.org/r/45944
Comment 21 Bartosz Dziewoński 2013-07-31 22:08:54 UTC
Created attachment 13041 [details]
Tabs' behavior after Iedaebefc was merged

This is mostly fixed now (see screenshot in attachment), so I'm closing this bug. Further improvements would be lovely, but the immediate issue is fixed.
Comment 22 Bartosz Dziewoński 2013-09-01 09:05:29 UTC
*** Bug 53630 has been marked as a duplicate of this bug. ***

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


Navigation
Links