Issue Feature Closed

#16460Image zoom if width > X px

John Angel 08/12/06, 11:04 updated 03/06/14, 09:14

Description

Introducing new constant, e.g. styles.content.imgtext.minZoomW, which would enable JS zoom for current image if it is wider than {$styles.content.imgtext.minZoomW}.

I.e. we want to make sure the original image is big enough to be shown in the click-enlarge-popup.

TS would look something this:

tt_content.image.20.1.imageLinkWrap.enable.value = {$styles.content.imgtext.minZoomW}
tt_content.image.20.1.imageLinkWrap.enable.isGreaterThan = WIDTH OF CURRENT IMAGE

This TS code won’t work currently, since we cannot get image width at the moment of execution.

Default value for styles.content.imgtext.minZoomW would be styles.content.imgtext.maxWInText – so FE won’t enable zoom of image which is already displayed in the text, in the full size.

(issue imported from #M4028)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.