Last modified: 2011-03-13 18: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 T4990, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2990 - Thumbnail boxes improperly sized when |NUMxNUM px is used.
Thumbnail boxes improperly sized when |NUMxNUM px is used.
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.3.x
All All
: Lowest normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/User:Gre...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-28 21:29 UTC by grendelkhan
Modified: 2011-03-13 18:04 UTC (History)
0 users

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


Attachments

Description grendelkhan 2005-07-28 21:29:10 UTC
I have a skinny, tall image which I want to use as a thumbnail.
([[commons:Image:AMR and PCI slots.gk.jpg]], in particular.) The thumb is far
too tall, so I used the |300x300px tag as follows:

[[Image:AMR and PCI slots.gk.jpg|300x300px|thumb|AMR slot (brown, at left), with
PCI slot (white, at right) for comparison.]]

The relevant portion of the generated HTML is [div style="width: 302px;"], which
should have a width of 107px. To do this, the code |105x300px must be used. The
image box should automatically size itself to the generated thumbnail, not
require that the precise pixel dimensions be entered.
Comment 1 JeLuF 2005-07-28 21:33:31 UTC
The 300x300px specification creates a box big enough to contain a 300x300 px
thumbnail. It's intended to be used when one wants to have several image boxes
of the same size for images of different aspect ratio or size. If you specify
300x300px for all of them, the boxes will have the same size for all of them,
and the images will fit into it. This is intended behaviour.

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


Navigation
Links