Skip to content

Conversation

@bhowell2-fleetio
Copy link
Contributor

Sync the Grid's options with the float value.

I also set to check if the value actually changed before calling triggerChangeEvent, but maybe this is not desired?

src/gridstack.ts Outdated
delete o.alwaysShowResizeHandle;
}
Utils.removeInternalAndSame(o, GridDefaults);
o.float = this.engine.float
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no I would do it on float(true) API to set them both instead. user might never call save.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adumesny changed. I also checked if the value actually changed so that _triggerChangeEvents wasn't called when nothing changed, but I can see this maybe being undesired too. Lemme know.

@adumesny adumesny merged commit 2048348 into gridstack:master Aug 24, 2022
@adumesny
Copy link
Member

thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants