3.1, widget: Don't open/close forms too far, even when not displayed regularly.

Redundant in master since 6a714109276353b6d10dbf1c11d5f181c6511ce1.

Probably fixes ticket:3532.