new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Mantine · all subjects

floating-window/callbacks

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

onSizeChange callback fired on window resize

The onSizeChange callback is called with an object containing the width and height of the window every time it is resized. The sizes passed to this callback are measured after the new size has been applied, so they are already clamped by the dimensions and viewport constraints and always match the actual size of the window. Both width and height are always provided, even if only one of the axes is resizable.

onResizeStart and onResizeEnd callbacks for resize lifecycle

The onResizeStart callback is called when the resize starts, and onResizeEnd is called when the resize stops. These callbacks mirror the onDragStart and onDragEnd callbacks used for dragging.

Resize callbacks only called for pointer resize

onResizeStart and onResizeEnd are called only for pointer resize. Keyboard resize applies the new size immediately and has no start/end phase. However, onSizeChange is called for both pointer and keyboard resize.

Resize callbacks require dimensions prop and ResizeHandle

All resize callbacks (onSizeChange, onResizeStart, onResizeEnd) require the dimensions prop and FloatingWindow.ResizeHandle to be present. These callbacks are not called if the window is not resizable.

onPositionChange callback mirrors onDragStart and onDragEnd

FloatingWindow supports onPositionChange callback which mirrors onDragStart and onDragEnd used for dragging, allowing you to respond to position changes.

Give your agent this brain