Window is so big that button can not be selected
Brought to you by:
baudinr
I installed the new version of textmath in libreoffice 6.04 and I have a problem with the windows size. The size is so big that it do not fit into the screen so I can not click in the button to create the equation or change options.
Hi, I tried to reproduce the bug with your setup, but I could'nt. I used LibreOffice 7.1.2 with TexMaths 0.49 in Windows 10, with a resolution of 1920 x 1080 in a VM.
The TexMaths window was only too big with a text size of 175% (and in this case the font size is really BIG). And when I returned to 100%, I was able to resize the TexMaths window to its default size.
Last edit: Roland Baudin 2021-05-01
I also am not able to reproduce the bug after creating a new user-profile.
With the older backed up user profile, I run into the following Error
Effect of app and text scaling
While trying to investigate this error, I observed the dimensions for Tex Symbol pushbuttons in
TexMathsEquations_GUI.xdl
is definedSo it is safe to assume that the physical dimensions are also at 18 px x 18 px.
However, I have taken screenshots (attached below) and checked through
Paint
the actual dimensions at various app scaling factor and text-scaling factor areExpected behavior
I was expecting the text scaling should not affect the button dimensions, but the behavior is contra-indicative. Also another peculiar thing is effective scaling at 100 % app and 100 % text scaling is 2x.
Question
Should not the scaling be 1x at 100 % app and 100 % text scaling?
TexMath window runoff
Now the TexMath window dimension is defined in the same configuration file as
So the TexMaths window pixel dimensions are
This leads to window run off as my laptop physical resolution is 1920 x 1080.
As my laptop screen is 13.3', and due to my poor eyesight, I find 125 % text scaling with the Windows recommended 150 % app scaling comfortable. Maybe you are using larger screen size, in which case, text scaling leads to bigger text appearance and thereby is not be useful.
Aside
To check if the text scaling affects LO as a whole. I set LO window to small dimension of 1544 x 688 instead of maximized mode and monitored the file
4/user/registrymodifications.xcu
of user profile. The window size is not affected by a change of either app or text scaling or both.However if I check the same for the dialog windows like Extension Manager and Options, their behaviour mimicks that of TexMaths.
However a different app like
Git client on Windows
behaves as expected by scaling only for app scaling factor and not text scaling factor.Summary
Thanks for the detailed report. To me, LO extensions behave the right way: it is normal that when increasing the UI font size, the UI button size also increases.
And since the TexMaths dialog size is based on the UI button size, then it's also normal that the dialog size increases when the UI font size is increased...
However, one could probably do a better job by limiting the TexMaths Dialog size to the screen size. This would be better than the actual behaviour.
Yes, such an implementation can solve the rollover issue. A dynamic scrollbar could allow access to the bottom buttons in the case of scaled up UI.
I can try my hand if is OK with you. However I need to familiarize myself with XML way of GUI building and LO's design prinicples. I have little experience with
pyqt
.Could you suggest some links for starters? I will come up with an enhancement proposal later.
Thank you :)