-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: calculate item height accounting for long title [DHIS2-8492] (#664)
fixes: https://jira.dhis2.org/browse/DHIS2-8492 Calculate the height of the item based on the header height - which is no longer constant since items now support wrapped titles. This calculation is the backup value incase the measured height of the chart is not available right away, as in view mode. In addition, fn getContentStyle was memoized to reduce chart rerenders when items are moved in edit mode.
- Loading branch information
1 parent
7fc9249
commit e1f73c9
Showing
4 changed files
with
60 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters