mediawiki-extensions-Visual.../modules/ve-mw/ui
Moriel Schottlender 5f2ce173a0 Enforce width-only default size only on larger images
While the documentation is unclear, it seems that the 'thumbsize' in
$wgDefaultUserOptions is setting up width limit rather than a general
bounding box.

Things that are adapted in this fix:

* Only resize the image if the image is bigger than default and marked
  as default size.
* Only limit width, even if the image is tall.
* Add rounding to calculated height value.
* Make sure new images follow these rules as well on insertion.

Bug: 62293
Bug: 62279
Change-Id: I37525bf3480bb1da8b0538f9b38576616aabbfa6
2014-03-10 19:05:14 +00:00
..
dialogs Enforce width-only default size only on larger images 2014-03-10 19:05:14 +00:00
inspectors Update constructors of inspectors and dialogs as per changes in I345d6e6 2014-03-05 17:07:20 -08:00
pages Add required indicators to parameter pages 2014-03-06 23:03:20 +00:00
styles Add required indicators to parameter pages 2014-03-06 23:03:20 +00:00
tools Re-label "Transclusion" button to "Template", as that's now the default 2014-03-06 02:44:14 +00:00
widgets Make parameter search widget case insensitive 2014-03-06 12:10:42 -08:00
ve.ui.MWDialog.js Update constructors of inspectors and dialogs as per changes in I345d6e6 2014-03-05 17:07:20 -08:00