Ubuntu 21.10 gnome-terminal doesn't maximize/un-maximize to original 80x24 size correctly

Ubuntu 21.10. My gnome-terminal opens to a standard 80x24 size window. That's fine.

However, if I maximize the window to the size of my display (1920x1080) and then immediately un-maximize the window, it returns to a 80x23 size window. Then I have to manually reset the window size to 80x24 using the "Advanced" menu in gnome-terminal.

And, in fact, every time that I maximize/un-maximize the gnome-terminal, the window size is reduced by one row... to 80x22... then 80x21... etc.

Any idea why this happens, and is there a fix/workaround?


Possible workaround...

Start dconf Editor and change headerbar from "nothing" to "false"...

enter image description here

Or type:

dconf write /org/gnome/terminal/legacy/headerbar '@mb false'

source: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1877039

source: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/129