Skip to content

Dashboard widget maximize (fullscreen) fails when dashboard has only one view #2308

@anneb

Description

@anneb

Describe the bug

When using dashboards in GeoNode (MapStore client), clicking the widget “maximize” (fullscreen) icon fails if the dashboard contains only one view.

Instead of showing the widget maximized, the dashboard content becomes blank (white container). No network requests or JavaScript exceptions are triggered.

If a second view is added (even an empty one), the maximize behavior works correctly.

Expected Behavior

When the maximize button is clicked, the widget should take up the full height and width of the dashboard container

Steps to Reproduce the Problem

  1. Create a dashboard with at least one widget and only one view
  2. Click the 'maximize' icon at the top-left of the widget
  3. The view is empty (all widgets are removed from the DOM in the dev console element viewer)

workaround: before clicking 'maximize' add a second (empty) view => maximize works

Specifications

  • GeoNode client version: django-geonode-mapstore-client: 5.0.0.dev0
  • Browser: Chrome Versie 143.0.7499.110 (Officiële build) (64-bits)
  • Installation type (vanilla, geonode-project): https://github.com/GeoNode/geonode/ + "docker compose up"
  • Additional details:

No network requests are fired when clicking maximize

No JS exceptions (even with “pause on caught exceptions” enabled)

DOM inspection shows the widget container being removed from the layout during full-screen when only one view exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions