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

fix: fixed plugin dimensions [LIBS-634] #858

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

tomzemp
Copy link
Member

@tomzemp tomzemp commented Jun 28, 2024

See https://dhis2.atlassian.net/jira/software/c/projects/LIBS/issues/LIBS-634

This PR updates the styling around a plugin loaded by a shell:

  • plugins that have fixed dimensions: app-shell loads the d2 without any divs/resizing logic
  • plugins that have at least one dimension that can resize: load with extra wrapper divs and resizing logic.

Previously, plugins without resizing logic "skipped" the resizing logic (e.g. resizing observer not set up), but I kept (for consistency/simplicity) the extra wrapper divs in the expectation that they would not have issues. From a visual perspective, the wrapper divs don't do anything, but they are apparently preventing highcharts charts from executing their own resizing logic when used in dashboards.

Checked with dashboard/data visualizer, and this new implementation seems to resolve issue:
vis_plugin_highcharts

@tomzemp tomzemp requested review from edoardo, KaiVandivier and a team June 28, 2024 06:51
@tomzemp tomzemp changed the title LIBS-634/fixed-dimen-plugins fix: fixed plugin dimensions [LIBS-634] Jun 28, 2024
@tomzemp tomzemp force-pushed the LIBS-634/plugin-wrapper-styling branch from 6f00042 to 361e7e1 Compare June 28, 2024 07:01
@tomzemp tomzemp merged commit 1f717f3 into master Jul 1, 2024
6 checks passed
@tomzemp tomzemp deleted the LIBS-634/plugin-wrapper-styling branch July 1, 2024 10:19
dhis2-bot added a commit that referenced this pull request Jul 1, 2024
## [11.5.1](v11.5.0...v11.5.1) (2024-07-01)

### Bug Fixes

* fixed dimensions plugins [LIBS-634] ([#858](#858)) ([1f717f3](1f717f3))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 11.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

dhis2-bot added a commit that referenced this pull request Jul 8, 2024
# [12.0.0-alpha.3](v12.0.0-alpha.2...v12.0.0-alpha.3) (2024-07-08)

### Bug Fixes

* **alerts:** ensure hiding works correctly and alerts are not re-added [DHIS2-15438] ([#859](#859)) ([6b11fff](6b11fff))
* fixed dimensions plugins [LIBS-634] ([#858](#858)) ([1f717f3](1f717f3))
* small text change in changelog ([824dd2f](824dd2f))

### Features

* cleanup plugin error boundary [UX-136] ([#856](#856)) ([de252fe](de252fe))
* parse additional namespaces from `d2.config.js` and add to `manifest.webapp` [LIBS-638]  ([#860](#860)) ([62782fe](62782fe))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 12.0.0-alpha.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants