mediawiki-extensions-Visual.../modules/ve-mw
Moriel Schottlender 14e1de1009 Update initialHash after getting defaultDimensions in image model
On initialization, the image model has an initial scalable that has
the given currentDimensions from Parsoid; these are usually correct.
However, in cases where the wiki settings do not fit the user settings
and the images appear smaller or bigger in practice than the values
of the wiki-defaults, the initial hash will store the wrong values.

We will only know what the real values for the comparison will be
after we get them from the API and the calculation; only at that
point we can update the image model initial hash.

This is important so that later the dialog can properly understand
whether to enable the "apply" button if a user changed an image
to custom size and then back to default.

Change-Id: If17b50cc4a39993f98a20a3fec3ddf5d8cb400b3
2014-10-22 00:11:43 +00:00
..
ce Don't try to check page existence of external links in transclusion nodes 2014-10-17 19:49:32 +01:00
dm Update initialHash after getting defaultDimensions in image model 2014-10-22 00:11:43 +00:00
i18n Localisation updates from https://translatewiki.net. 2014-10-20 22:27:57 +02:00
init Merge "Apply link styling logic to transclusion nodes" 2014-10-08 14:30:01 +00:00
tests [BrowserTest] Prepare repository for running RuboCop after every push to Gerrit 2014-10-21 17:35:04 +02:00
ui Update initialHash after getting defaultDimensions in image model 2014-10-22 00:11:43 +00:00