A date/time input with a <datalist> first opens a small
suggestion list popup. Choosing the "Other..." entry swaps the full
time picker into the same popup window. When the input sits near the bottom
of the screen the picker must grow upward: the popup origin moves up
while the size grows in one bounds change.
On Aura desktop the popup lives inside a wrapper top-level widget
(DesktopNativeWidgetTopLevelHandler). SetBounds()
converts screen to parent coordinates against the wrapper's old
origin, so the child ends up offset (e.g. 0,-144) inside the
wrapper, and OnWindowBoundsChanged then moves the wrapper to
the child's screen bounds without re-aligning the child. The picker renders
shifted out of the popup; what remains visible is gutter — or nothing
at all. The corrective SetWindowRect() normally repairs this,
but those SetPopupBounds calls are dropped while the browser
waits for an UpdateScreenRects ack, which reliably happens
because the renderer main thread is busy building the picker DOM.
Captured on Linux (X11, device scale factor 1.25, window at screen bottom). "Before" is top-of-tree with the fix commit reverted; "after" is top-of-tree.
DesktopNativeWidgetTopLevelHandler::OnWindowBoundsChanged now
re-aligns the child window to the wrapper's origin after following a child
bounds change, so a grow-upward popup stays inside its wrapper. With the
geometry fixed, the suggestion picker no longer needs the hide-to-1x1 window
dance before opening the full picker.
Landed as CL 7856802
("Fix datalist Other picker when popup opens upward", commit
838d8c692a14, bug 348520442). Issue 40911529 is the same defect
and is fixed by that CL.
<input type="time" list="popularHours">
<datalist id="popularHours">
<option value="12:00"></option>
<option value="13:00"></option>
<option value="14:00"></option>
</datalist>