Last modified: 2014-09-19 03:52:35 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 T72926, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70926 - Gallery element renders image height and width inconsistently when you specify packed mode
Gallery element renders image height and width inconsistently when you specif...
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 70925 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-17 05:44 UTC by Jared Zimmerman (WMF)
Modified: 2014-09-19 03:52 UTC (History)
2 users (show)

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


Attachments

Description Jared Zimmerman (WMF) 2014-09-17 05:44:54 UTC
see https://www.mediawiki.org/wiki/Design#Team reload the page at different browser widths to see images size inconsistant ways per page load, even when the syntax specifies the heights absolutely.
Comment 1 Andre Klapper 2014-09-17 09:04:33 UTC
Seeing six photos in the first row and five in the second, both rows having the same total width, this might simply be a feature?

  <li class="gallerybox" style="width: 178.8333px;"></li> (first row)
  <li class="gallerybox" style="width: 217.946px;"></li> (second row)
for my screen with 1440px width.
Comment 2 Andre Klapper 2014-09-17 09:05:02 UTC
*** Bug 70925 has been marked as a duplicate of this bug. ***
Comment 3 Jared Zimmerman (WMF) 2014-09-17 20:07:50 UTC
doesn't *feel* like a feature, especially when you resize you browser and you see things lot line up.
Comment 4 Bawolff (Brian Wolff) 2014-09-19 02:45:09 UTC
Its a feature that the heights are adaptive (in the packed mode) to fill width of screen, and that different rows will have different heights in order that the rows "line-up".

In the particular page you have, I'll admit that it might look good for both rows to have same height, and have the last row centered. However the general case of having many rows, it usually looks better to have all rows with the same combined width, but varying the heights for each row.

-----

It is a known shortcoming that the heights only re-adjust at the initial page load, and if you re-size your browser window after the page has loaded, everything goes to crap.

Note: That in the docs for this feature, it says that the heights parameter is only strictly interpreted for mode="traditional".
Comment 5 Jared Zimmerman (WMF) 2014-09-19 03:47:06 UTC
Would it be possible for the heights to be adjusted dynamically per row, rather than just during page load, this would resolve the issue with inconsistent heights in the same row.
Comment 6 Bawolff (Brian Wolff) 2014-09-19 03:52:35 UTC
Its possible, involves more than a couple line fix though. Would require someone to actually do it(tm), but definitely doable.

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


Navigation
Links