yasmin_editor.editor_gui.ui.clipboard_dock_sizing module
Helpers for persisting the user-controlled shelf width.
- yasmin_editor.editor_gui.ui.clipboard_dock_sizing.clamp_clipboard_dock_width(target_width: int, *, minimum_width: int = 180) int
Clamp one requested shelf width to the supported lower bound.
- yasmin_editor.editor_gui.ui.clipboard_dock_sizing.normalize_persisted_clipboard_dock_width(persisted_width: object, *, minimum_width: int = 180, default_width: int = 280) int
Return one persisted shelf width value as a safe integer.
Settings backends may return strings, floats, or invalid values. The editor should always recover to a readable default instead of propagating malformed persisted state into the dock geometry.