Skip to content

Height Set fails on grid = null  #1

@Delaylah

Description

@Delaylah

Hi, I just want to say great idea to make this accessible for Blazor, and big thanks!

I found small issue with initialization of Height in ItemOptions.js. If grid is null, it will throw exception and its not handled properly as in other attributes. So new set should be :
`
[JsonProperty]

    public int Height
    {
        get { return _Height; }
        set
        {
            if (value != _Height)
            {
                _Height = value;

                if (!suppressevents)
                {
                    changed();
                    if (grid != null)
                    grid.GridJS.update(this.ElementID, this._X, this._Y, this._Width, this._Height);
                }
            }
        }
    }`

Also I was trying to setup noMove, but its not working. Object is still movable even if we set noMove = true;

Thanks again!
Ajla

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions