jmix-projects / jmix-ui

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

Duplicate meta annotation for form attribute "childrenCaptionWidth" #718

Closed GlebDurygin closed 2 years ago

GlebDurygin commented 2 years ago
    /**
     * Sets fixed captions width for all columns. Set -1 to use auto size.
     *
     * @param width fixed caption width
     */
    @StudioProperty(type = PropertyType.STRING)
    void setChildrenCaptionWidth(int width);

    /**
     * Set fixed captions width for column with a given index. Set -1 to use auto size.
     *
     * @param column a column index
     * @param width  fixed caption width for column with a given index
     */
    @StudioProperty(name = "childrenCaptionWidth", type = PropertyType.SIZE, defaultValue = "-1px")
    void setChildrenCaptionWidth(int column, int width);

For this reason, when creating a form from the component palette in the Jmix Studio, an unnecessary attribute childrenCaptionWidth=AUTO is added to the XML:

reznikova21 commented 2 years ago

1.2.0-SNAPSHOT - verified