Changes between Version 1 and Version 2 of Ticket #13794, comment 5


Ignore:
Timestamp:
Feb 21, 2017, 5:02:19 PM (2 years ago)
Author:
Gosh Snobo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13794, comment 5

    v1 v2  
    11I would propose to reopen this ticket. Currently, {{{onUploaded}}} sets image width & height if non-empty values are returned from server, otherwise it sets {{{$img.naturalWidth}}} & {{{$img.naturalHeight}}}. But I think it should be a valid scenario to NOT set width/height, e.g. to allow for responsive images (those with {{{max-width=100%}}} in the CSS).
    22
    3 In case of traditionally uploaded image, {{{config.image2_prefillDimensions}}} setting serves exactly this purpose. In case of dropped upload, however, this setting has no effect. So imho either the same setting should be also governed by {{{onUploaded}}}, or we need a new setting (though I think it would be more confusing).
     3In case of traditionally uploaded image, {{{config.image2_prefillDimensions}}} setting serves exactly this purpose. In case of dropped upload, however, this setting has no effect. So imho either the same setting should be also obeyed by {{{onUploaded}}}, or we need a new setting (though I think it would be more confusing).
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy