Calc resize problem

I have Calc 7.0.4.2 installed on MX Linux 21 (based on Debian 11), I’ve installed it from package manager, Writer has no problem in resizing its window, but Calc won’t allow me to do it (the resize button, a square icon between - and X on the right upper corner does nothing, and when I tried to drag the borders, it doesn’t work), I’m afraid I messed up with my installation. Is there an easy fix or it’s better to re-install OS?

Get a terminal and try this:

SAL_USE_VCLPLUGIN=gen /usr/bin/soffice

EDIT: fixed soffice path. Thank you karolus.

The absolute Path installed from|with packagemanager should be:
/usr/bin/soffice →→

SAL_USE_VCLPLUGIN=gen /usr/bin/soffice

@Villeroy @karolus thanks for your tips, tried your command on terminal still not working, removed LO and reinstalled it, still the same. What I don’t understand is Writer works fine, but Calc has this problem and reinstalling it did not fix the problem.
ps: soffice is in /usr/bin

Re-installing a Linux program from the same source means that you replace all the bytes with the exact same bytes.

Next try:
Save your work and close the office.

killall soffice.bin
cd ~/.config/libreoffice/4
mv user user.bkp
soffice --calc

Thanks for additional tips, I might have deleted a package by mistake which affected LO, had to reinstalled OS, now it’s working fine. Thanks for your time.