The simplest way :
View -> Auto Resize -> Select automatically adapt to the client window and automatically adapt to
the general procedure :
reproduced in: https://blog.csdn.net/zhengliuguo/article/details/78363546?depth_1-utm_source=distribute. pc_relevant.none-task & utm_source = distribute.pc_relevant.none- task
My ubuntu-18.04.1 pro-test can.