This is expected behavior in windowed mode. The UI is optimized for fullscreen only. There is a fullscreen button in the bottom-right corner.