mediawiki-extensions-Visual.../modules/ve-mw/dm/nodes
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
..
ve.dm.MWAlienExtensionNode.js Bump copyright like it's 2014 2014-01-05 20:06:50 +08:00
ve.dm.MWBlockImageNode.js Enforce width-only default size only on larger images 2014-03-10 19:05:14 +00:00
ve.dm.MWEntityNode.js Simplify toDataElement in MW 2014-01-27 18:43:36 -08:00
ve.dm.MWExtensionNode.js Add tagName to ve.dm.MWGalleryNode 2014-01-27 14:28:16 -08:00
ve.dm.MWGalleryNode.js Add tagName to ve.dm.MWGalleryNode 2014-01-27 14:28:16 -08:00
ve.dm.MWHeadingNode.js Simplify toDataElement in MW 2014-01-27 18:43:36 -08:00
ve.dm.MWHieroNode.js Bump copyright like it's 2014 2014-01-05 20:06:50 +08:00
ve.dm.MWImageCaptionNode.js Simplify toDataElement in MW 2014-01-27 18:43:36 -08:00
ve.dm.MWImageNode.js Use apiRequest() function in MWMediaEditDialog 2014-02-06 22:37:04 +00:00
ve.dm.MWInlineImageNode.js Ensure we use our references to certain native or upstream methods 2014-02-20 22:30:29 +01:00
ve.dm.MWMathNode.js Bump copyright like it's 2014 2014-01-05 20:06:50 +08:00
ve.dm.MWNumberedExternalLinkNode.js Simplify toDataElement in MW 2014-01-27 18:43:36 -08:00
ve.dm.MWPreformattedNode.js Simplify toDataElement in MW 2014-01-27 18:43:36 -08:00
ve.dm.MWReferenceListNode.js Bump copyright like it's 2014 2014-01-05 20:06:50 +08:00
ve.dm.MWReferenceNode.js Remove unnecessary strangely written range clone 2014-01-21 17:35:45 +00:00
ve.dm.MWTransclusionNode.js Only generate transclusion contents for clipboard 2014-02-05 12:45:55 -08:00