2024 my issue was that I had the User Interface Size in the settings set to 300% (Available only in 4K resolution). I changed it to 100% (which made my UI super small), adjusted map window size to very very small, and then returned to 300%.
I guess this only works if you are not already in a smaller resolution, but it may help someone.