Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibreOffice submenu wrong alignment #695

Closed
mhenze opened this issue May 23, 2012 · 10 comments
Closed

LibreOffice submenu wrong alignment #695

mhenze opened this issue May 23, 2012 · 10 comments

Comments

@mhenze
Copy link

mhenze commented May 23, 2012

The box of the submenu in LibreOffice is aligned to the right instead of left: http://www.myimg.de/?img=libreofficedfe79.png

I haven't observed a similar behaviour in another application.

Cinnamon version: 1.4.0-UP3-0ubuntu1~precise1 from the Ubuntu PPA.

@ghost
Copy link

ghost commented May 24, 2012

It does that if the right side of the screen is too close to the mouse to fit the menu box. Perhaps it is trying to fit the entire submenu (including expanded sub-sub menus). Is this really an important bug?

@AlbertJP
Copy link
Contributor

Even with Raikia's help I cannot reproduce this in Mint 12. But perhaps Muffin 1.0.3 is to blame here. On Mint 12 you use 1.0.2.

@mhenze
Copy link
Author

mhenze commented May 25, 2012

It seems to be related with my dual-monitor setup and maybe related to #694. On my left screen, the menu works as expected, the problem only occurs on the right (primary) screen.

@Raikia there is more than enough space to fit the fully expanded menu box. It rather seems that some calculations get screwed up by my dual-monitor setup.

@ghost
Copy link

ghost commented May 25, 2012

@mhenze : That actually makes perfect sense. Somewhere in the code, its checking for the right side of the left monitor (sequential coordinates). If the menu is too close to the right side of the left monitor, then the menu will appear on the other side of the mouse. If the mouse goes PAST the left monitor's side (AKA: the right monitor), then the code will still execute to make the menu on the other side of the mouse.

I'm not sure where the menu gets its UI code (I'm sure its one of the .js files in /js/ui), but if I find it, I'll write you a quick patch. This isn't a very big bug though.

@AlbertJP
Copy link
Contributor

@Raikia Those menus are probably part of the window manager, muffin. (https://github.com/linuxmint/muffin)

@ghost
Copy link

ghost commented May 25, 2012

@AlbertJP : You are very correct. I wasn't thinking...of course its part of the window manager. Thanks!

@ghost
Copy link

ghost commented May 25, 2012

From looking at the commits in both Muffin and GTK 3.3, it appears to me like the bug might have been introduced within GTK 3.3 itself. No code in Muffin was touched that would affect the layout location/size of the menu box. However, the updates between Muffin 1.0.2 and 1.0.3 merged GTK 3.3, which contains a lot of changes in where things are displayed (linuxmint/muffin@a5935f8). You might want to progress this bug upstream to GTK, although I don't think its a big deal at all.

Before you do so, mhenze, I recommend confirming what AlbertJP said about it not affecting Muffin 1.0.2. If it doesn't affect 1.0.2 but it does 1.0.3, then it was introduced in GTK 3.3.

@AlbertJP
Copy link
Contributor

@Raikia Does it also happen when running another GTK 3 based desktop such as Unity or Gnome Shell on Ubuntu 12.04?

@mtwebster
Copy link
Member

Closing due to inactivity. If you think this still might be an issue, see the instructions here to try a newer version. If the problem still exists, we'll reopen the issue.

@mhenze
Copy link
Author

mhenze commented Sep 17, 2012

This is still an issue in 1.5.7-20120906044007-precise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants