sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

x11 pop-up menus can't be repositioned #3776

Open DrXyzzy opened 5 years ago

DrXyzzy commented 5 years ago

[Edited. This issue was previously only about QGIS.]

In X11 apps, sometimes a pop-up menu appears and part of it is out of the frame, and the menu can't be repositioned. That makes it impossible to select menu choices that are out of frame.

See the third screenshot below for an example of this with QGIS, followed by steps to test any possible fixes.


At present, QGIS opens two error windows at startup. After those are dismissed, I'm unable to scroll to the bottom of menus that pop up if they extend below the browser window. I've added steps for a simple test after the 3 screenshots below.

qgis-sip-error qgis-utils-error qgis-menu-bottom

One way to test QGIS:

  1. Download states_21basic.zip here. You don't have to unzip it because QGIS can read zipfiles: https://www.arcgis.com/home/item.html?id=f7f805eb65eb4ab787a0a3e1116ca7e5
  2. Open a .x11 file in CoCalc and click the QGIS button.
  3. QGIS should open without warnings & errors.
  4. Select: Layer > Add Layer > Add Vector Layer. Keep the defaults and enter the path to the states_21basic.zip file downloaded in Step 1. Then click Add and Close.
  5. Right-click in the Layers pane (lower left) on the layer for states_21basic states. A menu will pop up. You should be able to scroll down to the bottom of the menu and select Properties at the very bottom.
williamstein commented 5 years ago

I think the fix should be to put in an "evil hack" and just move these popup menus up so they are on screen. Our frontend client code can definitely do it... Anyway, this is very solvable. Thanks for the example.

haraldschilly commented 5 years ago

well, you write about two issues. the menu off screen is a more general problem, which happens with several apps.

an updated qgis exhibits the same symptoms, and I'm not sure what to do. below is a screenshot for reference regarding the version numbers.

Screenshot from 2019-04-25 11-44-56

haraldschilly commented 5 years ago

Well, searching around, we're not alone with these qgis errors. This is probably one of those situations, where a large install base with many tweaks, as we do, doesn't work out. Their checks are very specific to their own packages.

williamstein commented 5 years ago

@DrXyzzy -- can you change the title of this issue to be something about popup menu visibility and x11?