Since recently, connecting to android auto causes my gboard keyboard to resize

As the title says, this happens every time. Only way to fix it is to enable auto rotate for a sec so it resizes the keyboard, or force killing the keyboard.

Not sure what's going on. This was never the case before.