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: maps, ev and er were not resizing for fullscreen or item resize in edit mode #1659

Merged
merged 7 commits into from
Mar 22, 2021

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Mar 19, 2021

Since the switch to dynamic module loading, the plugins are now promises and need to be resolved. There were some awaits that were missing.

Other improvements were to move the listener for resizing events to the specific plugin component rather than having it in componentDidMount in the generic Visualization component. This reduced the number of times re-render of the plugin was triggered.

Fullscreen:

all.types.fullscreen.mov

Window resize:

all.types.window.resize.mov

Item resize:

all.types.item.resize.mov

@jenniferarnesen jenniferarnesen marked this pull request as draft March 19, 2021 14:11
@jenniferarnesen jenniferarnesen changed the title fix: map not resizing for fullscreen or item resize in edit mode fix: maps, ev and er were not resizing for fullscreen or item resize in edit mode Mar 22, 2021
@jenniferarnesen jenniferarnesen marked this pull request as ready for review March 22, 2021 12:12
@turban
Copy link
Contributor

turban commented Mar 22, 2021

@jenniferarnesen, can you confirm that scroll wheel zoom is disabled for map items by default, but enabled when in fullscreen mode?

@jenniferarnesen
Copy link
Collaborator Author

@jenniferarnesen, can you confirm that scroll wheel zoom is disabled for map items by default, but enabled when in fullscreen mode?

Yes that describes current behavior

Copy link
Contributor

@turban turban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Will do some extra testing after this is merged to master.

@jenniferarnesen jenniferarnesen merged commit c56b562 into master Mar 22, 2021
@jenniferarnesen jenniferarnesen deleted the fix/map-not-resizing branch March 22, 2021 14:10
dhis2-bot added a commit that referenced this pull request Mar 22, 2021
## [31.14.6](v31.14.5...v31.14.6) (2021-03-22)

### Bug Fixes

* avoid double rendering of chart visualizations ([#1658](#1658)) ([613ae75](613ae75))
* maps, ev and er were not resizing for fullscreen or item resize in edit mode ([#1659](#1659)) ([c56b562](c56b562))
* maximum grid width was hanging past right edge of paper in print preview ([#1657](#1657)) ([7faf5c2](7faf5c2))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.14.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

jenniferarnesen added a commit that referenced this pull request Mar 23, 2021
…in edit mode (#1659)

Since the switch to dynamic module loading, the plugins are now promises and need to be resolved. There were some awaits that were missing.

Other improvements were to move the listener for resizing events to the specific plugin component rather than having it in componentDidMount in the generic Visualization component. This reduced the number of times re-render of the plugin was triggered.
jenniferarnesen added a commit that referenced this pull request Mar 30, 2021
…in edit mode [v36] (#1666)

* fix: maps, ev and er were not resizing for fullscreen or item resize in edit mode (#1659)

Since the switch to dynamic module loading, the plugins are now promises and need to be resolved. There were some awaits that were missing.

Other improvements were to move the listener for resizing events to the specific plugin component rather than having it in componentDidMount in the generic Visualization component. This reduced the number of times re-render of the plugin was triggered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants