cvfosammmm / Setzer

LaTeX editor written in Python with Gtk
https://www.cvfosammmm.org/setzer/
Other
385 stars 33 forks source link

Main menu is cut off #399

Open SoongNoonien opened 4 months ago

SoongNoonien commented 4 months ago

Hi!

I was just trying out the editor from flathub while I noticed that the main menu is cut off: Bildschirmfoto vom 2024-03-24 10-42-47

Am I doing something wrong?

two-jays commented 3 months ago

I can also reproduce that behaviour on my Fedora 39 Silverblue with Flathub Installation of Setzer

cvfosammmm commented 2 months ago

I think that's because the translated text takes up more space than was allocated to the popover.

SoongNoonien commented 2 months ago

I'm not sure it seems weird that it's cut off exactly at the window border while popovers are allowed to cross the window borders. Gtk doesn't usually have any problems with showing translated strings even if they are much longer than the original ones. To me it looks more like the popover is correctly sized but somehow not able to draw outside the borders of the window. I suspect the English original is short enough such that the popover fits entirely inside the border? Note that in the screenshot the rounded border on the right of the popover is missing too.

cvfosammmm commented 2 months ago

This is not a Gtk Popover, but my own implementation, and it's not supposed to cross window borders (it's not itself a window).

SoongNoonien commented 2 months ago

Ok, now I understand. Does it need to be a custom widget or couldn't you just use a normal gtk popover?