Resolves: fdo#72682 text field doesn't horizontally expand

also see fdo#73920

(cherry picked from commit 674aeac88ffa1840f2d6a7f33656193aaebc9a0c)
(cherry picked from commit c1e0e4364b9ca3e437e118cde91183271357f3c5)

Change-Id: I3d12d0b376c9c0488d12df8f9d3fe76b1c00a437
Reviewed-on: https://gerrit.libreoffice.org/7591
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>