mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
e34fdae776
Make sure the image model can switch parameters when the image source is switched, rather than having to instantiate a new image model. Also, when the image is changed, retain aspect ratio but make sure to preserve the width of the previous image (unless the new image is smaller) Added 'resizeToBoundingBox' and 'scaleToThumbnailSize' static methods in MWImageNode that return scaled dimensions based on the image dimensions and the bounding box detals. Depends on core change Idbb8b29db8e Bug: 69450 Bug: 68000 Change-Id: I4327c86a9127f46da5522dc1197411fda757d5a4 |
||
---|---|---|
.. | ||
ve.dm.MWAlienExtensionNode.js | ||
ve.dm.MWBlockImageNode.js | ||
ve.dm.MWEntityNode.js | ||
ve.dm.MWExtensionNode.js | ||
ve.dm.MWGalleryNode.js | ||
ve.dm.MWHeadingNode.js | ||
ve.dm.MWImageCaptionNode.js | ||
ve.dm.MWImageNode.js | ||
ve.dm.MWInlineImageNode.js | ||
ve.dm.MWNumberedExternalLinkNode.js | ||
ve.dm.MWPreformattedNode.js | ||
ve.dm.MWReferenceNode.js | ||
ve.dm.MWReferencesListNode.js | ||
ve.dm.MWTransclusionNode.js |