a03106cc57
When preventExpansion is true, the maxHeight cap prevented the sheet from expanding when the keyboard opened. Lift the cap temporarily when the keyboard appears (updateLayout restores it on dismiss). Also broadened the state check to handle SETTLING state during rapid keyboard open/close. Fixes #9943 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>