ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.91k stars 332 forks source link

Working area not expand to window size #694

Open dmagnusl opened 3 years ago

dmagnusl commented 3 years ago

This issue is unique.

Operating System

Linux (DEB package)

Version information

ONLYOFFICE Desktop Editors version 6.3.1.56

Expected Behavior

When open OnlyOffice I expect the window can be resized and working area will be used in the whole window. This works on a second computer I own with a 1920x1080 screen. (POP OS 21.04).

Actual Behavior

Please se image. image Working area fixed in left top corner and are stuck. Can't resize as the rest of the window. This happes on my laptop with a 3840x2160 resolution.

Reproduction Steps

Install DesktopEditors on a Linux computer with a resolution at 3840x2160 and problem shows up.

Additional information

         ...-:::::-...                  
      .-MMMMMMMMMMMMMMM-.                                             ------------------ 
  .-MMMM`..-:::::::-..`MMMM-.                                                      OS: Linux Mint 20.2 x86_64 
.:MMMM.:MMMMMMMMMMMMMMM:.MMMM:.                        Host: DELL XPS 13 9370 

-MMM-M---MMMMMMMMMMMMMMMMMMM.MMM- Kernel: 5.4.0-80-generic :MMM:MM :MMMM:....::-...-MMMM:MMM:Uptime: 1 day, 5 hours, 25 mins :MMM:MMM :MM:`` ``:MMM:MMM: Packages: 2229 (dpkg), 18 (flatpak) .MMM.MMMM:MM. -MM. .MM-MMMM.MMM. Shell: bash 5.0.17 :MMM:MMMM:MM. -MM- .MM:MMMM-MMM: Resolution: 3840x2160 :MMM:MMMM:MM. -MM- .MM:MMMM:MMM: DE: MATE :MMM:MMMM:MM. -MM- .MM:MMMM-MMM: WM: Metacity (Marco) .MMM.MMMM:MM:--:MM:--:MM:MMMM.MMM. WM Theme: Mint-Y-Dark :MMM:MMM- -MMMMMMMMMMMM- -MMM-MMM: Theme: Mint-Y-Dark [GTK2/3] :MMM:MMM: :MMM:MMM: Icons: Mint-Y-Dark [GTK2/3] .MMM.MMMM:--------------:MMMM.MMM. Terminal: mate-terminal '-MMMM.-MMMMMMMMMMMMMMM-.MMMM-' Terminal Font: Monospace 14 '.-MMMM--:::::--MMMM-.' CPU: Intel i7-8550U (8) @ 4.000GHz '-MMMMMMMMMMMMM-' GPU: Intel UHD Graphics 620 -:::::- Memory: 3526MiB / 15712MiB

ShockwaveNN commented 3 years ago

@mawib Hi, could you try to install on same system not deb package, but flatpak or snap of DesktopEditors and see if problem stays same

We saw several reports of similar issue, but never reproduced it on our end (

dmagnusl commented 3 years ago

I try and return with an update.

dmagnusl commented 3 years ago

Same behaviour on .deb AppImage, Snap and Flatpak.

ShockwaveNN commented 3 years ago

Ok. forgot snap\appimage or flatpak

Could you run

desktopeditors --force-scale=1

or

desktopeditors --force-scale=2

and see if those variants looks good for you?

dmagnusl commented 3 years ago

No, scaling works but there are still a big grey area around the working area

scale1 image

scale2 image

ShockwaveNN commented 3 years ago

We got several 4k displays at our disposal, but never able to reproduce this problem, although users are reported similar problems before. Maybe problem is actual only for 13 4k displays, but we have no such small screens

My last idea - try to delete config file

rm ~/.config/onlyoffice/DesktopEditors.conf

Maybe this helps

dmagnusl commented 3 years ago

File deleted. After re-open DesktopEditors a new file is created. Content are still:

General] maximized=false position=@Rect(0 0 1920 1053) titlebar=custom

But UI looks the same as before.

ShockwaveNN commented 3 years ago

@mawib Now I'm out of ideas, I'm sure this some kind a bug, but we cannot reproduce it at all

I'l leave this issue opened until someone have some idea how to reproduce this problem on our systems, maybe some display config tinkering

dmagnusl commented 3 years ago

Ok. Thank you for your help. :-)

levin-kelevra commented 2 years ago

version 7.0.0.127 - same behaviour

levin-kelevra commented 2 years ago

$ env QT_SCREEN_SCALE_FACTORS=1 QT_SCALE_FACTOR=1 QT_FONT_DPI=263 PLASMA_USE_QT_SCALING=1 /usr/bin/onlyoffice-desktopeditors %U and it works fine

dmagnusl commented 2 years ago

For your information. I installed Manjaro with Gnome v 41.2 and scaling works without any additional settings. I tried with both 6.x.x version and the new 7.0 version of OnlyOffice.

I beleve Gnome have better scaling than MATE.

██████████████████ ████████ magnusw@magnusw-xps ██████████████████ ████████ ------------------- ██████████████████ ████████ OS: Manjaro Linux x86_64 ██████████████████ ████████ Host: XPS 13 9370 ████████ ████████ Kernel: 5.15.12-1-MANJARO ████████ ████████ ████████ Uptime: 2 days, 28 mins ████████ ████████ ████████ Packages: 1382 (pacman), 20 (flatpak) ████████ ████████ ████████ Shell: zsh 5.8 ████████ ████████ ████████ Resolution: 3840x2160 ████████ ████████ ████████ DE: GNOME 41.2 ████████ ████████ ████████ WM: Mutter ████████ ████████ ████████ WM Theme: Adwaita-maia-compact-dark ████████ ████████ ████████ Theme: Adwaita-maia-compact-dark [GTK2/3] ████████ ████████ ████████ Icons: Papirus-Dark-Maia [GTK2/3] Terminal: gnome-terminal CPU: Intel i7-8550U (8) @ 4.000GHz GPU: Intel UHD Graphics 620 Memory: 4165MiB / 15701MiB

ShockwaveNN commented 2 years ago

@mawib So to be clear

Right now problem with scale is actual for MATE and not actual to Gnome with same version of System and ONLYOFFICE DesktopEditors?

dmagnusl commented 2 years ago

Yes, I beleve so. I haven't have this problem after moving over to Gnome. My machine have temporary being installed with Windows 11 since Mint MATE for a time, but now I run Manjaro. I can try install newest version of Mint MATE on a VM and see if I can replicate the issue.

ShockwaveNN commented 2 years ago

@mawib Please do that if you got free time, it will gladly help us to localize problem

dmagnusl commented 2 years ago

OK I have installed latest version of Mint Mate 20.3 on a QEMU/KVM vm and set resolution to 3840 x 2160. If I use 100% scaling on the system - scaling works as designed in OnlyOffice. Both version 6 and 7. If I use 200% scaling on the system - scaling in OnlyOffice looks like above pictures.

I use 200% scaling on Manjaro with Gnome and OnlyOffice works good when scaling inside the application.

ShockwaveNN commented 2 years ago

Ok thanks! We'll have a look into it

siddhpant commented 1 year ago

This is a frontend / QT issue.

I have set QT_SCALE_FACTOR=1.25 and I face this issue. I'm on GNOME.

Setting QT_SCALE_FACTOR to 1 solves the issue.

A temporary fix can be to add export QT_SCALE_FACTOR=1 in the /usr/bin/onlyoffice-desktopeditors script.

a-difabio commented 11 months ago

I had the same problem on Pop!_OS 22.04 LTS, running GNOME 42.9 with Wayland. I downloaded ONLYOFFICE Desktop Editors version 7.5.1 from the Pop!_shop store, as a Flatpak. My sistem scaling is set to 100%, on a 2560x1440. However, I set the scaling factor for fonts to 150% in the GNOME Tweaks app.

The solution that worked for me was to replace this line: Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=desktopeditors --file-forwarding org.onlyoffice.desktopeditors @@u %U @@ with this one: Exec=env QT_FONT_DPI=163 QT_SCREEN_SCALE_FACTORS=1 QT_SCALE_FACTOR=1 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=desktopeditors --file-forwarding org.onlyoffice.desktopeditors @@u %U @@ in the file /home/my_username/.local/share/flatpak/exports/share/applications/org.onlyoffice.desktopeditors.desktop