jmix-projects / jmix-ui

DEPRECATED. Use https://github.com/jmix-framework/jmix
https://www.jmix.io
3 stars 7 forks source link

Wrong constant name in Image metadata annotations #647

Closed alexbudarov closed 3 years ago

alexbudarov commented 3 years ago

Jmix version: 1.0.0.

io.jmix.ui.component.Image#setScaleMode

    @StudioProperty(type = PropertyType.ENUMERATION, defaultValue = "NONE",
            options = {"NONE", "FILL", "CONTAIN", "COVER", "SCALE_MODE"})
    void setScaleMode(ScaleMode scaleMode);

Should be SCALE_DOWN, not SCALE_MODE.

QA

In the "Component Inspector" check that scaleMode attribute contains SCALE_DOWN instead of SCALE_MODE.