Ensure SoftContextMenu disappears on resize
Ensure SoftContextMenu disappears on resize

The previous implementation of the resize logic didn't work when
DevTools was docked. For that we have to use a ResizeObserver.

Fixed: 1307231
Change-Id: If6f81937e4436da65f2ca1ac8f0263e63a38b403
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3532901
Reviewed-by: Andres Olivares <9d3bededfc9b98cb289557338a8f98e77d597607@chromium.org>
Auto-Submit: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org>
Commit-Queue: Jack Franklin <993fcadce4d04090da2fefd557a0995e7966c8d5@chromium.org>

ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend,ChromeDevTools/devtools-frontend