When you resize the game vertically the GUI is not proportional to the window size. The attached screenshots show the GUI with automatically scaling where "GUI size after window resize (1.11).png" shows the GUI after the window height was reduced by maybe 10 pixels.
- Start Minecraft
- Set Options... → Video Settings... → GUI Scale: Auto
- Resize the window slightly vertically