bramp / bramp/js-sequence-diagrams
Size problem when set display none then block
- Dominant language
- JavaScript
- Stars
- 7.8k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hello guys,
If we set display none to the div containing the diagram in initialization step and after that change it as display block to be able to reveal the diagram according to some criteria, the size of the diagram doesn't suitable and it turns to very small rect areas.
As i guess, you don't recalculate the size and coordinates of the components belongs to the diagram when component is replaced or revealed. Maybe a listener mechanism can be performed for this.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with the diagram container hidden during initialization, then reveal it with display block and inspect the resulting SVG dimensions and component coordinates. Trace the diagram initialization and sizing entry points mentioned by the report; done means diagrams revealed after initialization render at the correct size and existing visible diagrams remain unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100