linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.52k stars 734 forks source link

Menu - right click context menu can fail to expand in certain circumstances. #7427

Open smurphos opened 6 years ago

smurphos commented 6 years ago
 * Cinnamon version 3.6.7
 * Distribution - Mint 18.3
 *  Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
      bus-ID: 00:02.0
      Display Server: X.Org 1.18.4 drivers: (unloaded: fbdev,vesa)
      Resolution: 1366x768@60.03hz
      GLX Renderer: Mesa DRI Intel Sandybridge Mobile
      GLX Version: 3.0 Mesa 17.2.8 Direct Rendering: Yes

 *  64 bit

Issue

Right click context menu can fail to expand in certain combinations of theme and screen resolution.

Steps to reproduce

This bug seems to be triggered if system or theme characteristics result in a menu with a height close to or exceeding the monitor height. E.g. setting text-scaling to a value above 1, having a theme with a large font size set, or a theme with relatively large padding values for menu-xxx-button styles.

The screen-shots below were taken on a 1366x768 monitor. Picture one is with an unmodified default theme and text scaling set to 2.0. Picture 2 is with text-scaling 1.0 but the default theme modified so that all menu-xxx-button styles have padding of 18px.

screenshot-screen-2018-04-02-073918 screenshot-screen-2018-04-02-073746

Edit to correct screenshots.

Expected behaviour

Other information

smurphos commented 6 years ago

Having a min-height set for .popup-menu-item widens the circumstances in which this will manifest - edit to add - actually it's a foolproof way of manifesting the issue.

ghost commented 6 years ago

@smurphos

Having a min-height set for .popup-menu-item widens the circumstances in which this will manifest - edit to add - actually it's a foolproof way of manifesting the issue.

Does this mean you are in a position to suggest a workaround, please?

smurphos commented 5 years ago

@CottonEaster

Does this mean you are in a position to suggest a workaround, please?

Yep - make sure you change whatever factor is it that makes a menu that is close to to the monitor height in size. Could be too many favorites in the stock menu, font-scaling, the theme itself....

ghost commented 5 years ago

smurphos: thanks, but for some reason (I don't know what) I do not have the problem at the moment; and any way you look at it, this is a bug, I think. For while admittedly a theme could be response, Cinnamon should, ideally anyway, have a way of checking for and coping with such problems.

LinuxOnTheDesktop commented 5 years ago

Perhaps it is worth reporting the following.

I have this problem of the absent context-menu and even on the alpha of Mint 19.2. I tried three screen resolutions (on the same computer) and have the problem in all of them. Disabling the left pane did not help. However, disabling HiDPI - which cannot be a permanent solution for me - did solve the problem. So: it seems to be a DPI bug. If that is the sole cause, it could bite a lot of people.

LinuxOnTheDesktop commented 5 years ago

Once again I have this problem and I find that the workaround suggested by @Smurphos does work. (Thanks, Smurpho!) That workaround is: find a way of making the menu height - the height of the main window pane - at least some 20% less than the size of the monitor. In my case I managed to implement the workaroubd by disabling both 'show category items' and 'show bookmarks and places'.