You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#4912 form remains shaded after closing Toolbar side menu (#4913)
closeLeftSideMenu zeroed the Toolbar layered pane's bgTransparency
and detached it once the dispose animation completed, but cnt.remove()
does not by itself trigger a form-level repaint. The previous frame's
shaded pixels (the dim backdrop painted while the menu was open) then
lingered in the simulator and JS port render buffer until something
else forced a redraw, so the underlying Form appeared darker than it
should after the menu closed. The user's confirmed workaround was a
manual form.revalidateLater() in response to the close.
The fix moves that revalidateLater into detachToolbarLayeredPane: the
host Form is captured before cnt.remove() severs its parent link, and
revalidateLater is queued once the pane is gone so the next paint
cycle overdraws any stale shaded pixels.
Regression test added: ToolbarTest disables the dispose animation via
reflection so the detach runs synchronously, then asserts the form is
queued for revalidate after closeLeftSideMenu returns.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments