Canadian-Geospatial-Platform / geoview

Canadian Geospatial Platform Viewer / Visualiseur de la Plateforme Géospatiale Canadienne
Other
20 stars 31 forks source link

[BUG] Chart config - Full screen mode disabled the "Steps" menu #2248

Closed MLAuger closed 1 week ago

MLAuger commented 3 weeks ago

Is there an existing issue for this?

Current Behavior

When using the "Package geochart" config, if the map is put in full screen mode, the "Steps" drop-down menu of the chart is disabled. You can't open it.

Expected Behavior

The "Steps"drop-down menu should offer you the folowing options as usual: image

Steps To Reproduce

  1. Select the Package geochart config
  2. Click on a "Airborne Radioactivity" station point
  3. go in the chart menu
  4. Put map in full screen
  5. Try to open the "Steps" drop-down menu

Anything else?

When you disabled the Full screen mode, the drop-down menu appears, floating over the map: image

cphelefu commented 2 weeks ago

@jolevesq this is a complex error that meets the eye. The error is happening because MuiSelect renders a Popover the bottom the page (when showing Select options). This cause it to not be visible. We had this problem with the Popover before. But we simply set the container property of the Popover (check Notifications component).

In this case the Select is rendered in a different project (geochart).

geoview-geochart > src >chart.tsx, lines 1558.