You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set the width of a column, either programmatic or by user (resizable=true) and I want programmatically to reset the width to apply defaults by calling Column.setWidth(null), the column is shown with a very large width.
If I call Column.getElement().removeProperty("width") instead , the column's width is changes to its default (as width has never been set explicitly).
The problem seems to be, that Column.setWidth(String) sets the width property to null instead of removing the property.
Instead of
public Column<T> setWidth(String width) {
getElement().setProperty("width", width);
return this;
}
Description of the bug
If I set the width of a column, either programmatic or by user (resizable=true) and I want programmatically to reset the width to apply defaults by calling Column.setWidth(null), the column is shown with a very large width.
If I call Column.getElement().removeProperty("width") instead , the column's width is changes to its default (as width has never been set explicitly).
The problem seems to be, that Column.setWidth(String) sets the width property to null instead of removing the property.
Instead of
it should be
Although the workaround is easy, I think it should be fixed.
Versions
The text was updated successfully, but these errors were encountered: