mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
- A control with alignment fill stays within its maximumSize when its
container's room is larger.
- A window or control takes at most 256 event listeners (VectorCraft's
own limit); one more throws a RangeError. A show listener can be
added only to the dialog, and on a control it throws an Error.
- A capturing listener on a container that stops a click keeps the
default or cancel button from closing the dialog. Listeners on the
containers that do not capture still leave the button to close it.
- stopPropagation() acts only on an event whose listeners are running,
and preventDefault() does nothing, since the events are not
cancelable.
- A control removed from its container has no parent, its events no
longer reach the containers it was in, and add and remove on it, or
on a control it holds, throw an Error. Its controls are no longer
counted toward the dialog's limits.
- remove(text) throws an Error, and removes nothing, when a text getter
changes the list or container while it looks for a match.
- A group takes its creation properties fourth again when the third
argument is not an object, as in add("group", undefined, undefined,
{name: "g"}).
- A click on a radio button now turns off only the radio buttons of its
set, the ones added next to it with no other kind of control between
them. It used to turn off every radio button in its container.
Docs: docs/mcp.md now says that notify runs the handlers without closing
the dialog.