GeezerVison is showing github.com — [BUG] PageBreak Story: "Print" does not work. · Issue #535 · maxGraph/maxGraph
[BUG] PageBreak Story: "Print" does not work. #535Labels bugSomething isn't working DescriptionDescribe the bug
In page break story, "Print" button does not work.
To Reproduce
Steps to reproduce the behavior:
- Go to story.
- Click on 'Print'.
(Nothing happens.)
Expected behavior
After click, a new tab will be opened and I can see preview.
See mxGraph example.
Additional context
Error in console:
 Activitytbouffard commented on Sep 20, 2024 I confirm the issue, the PrintPreview import is missing in the story. See https://github.com/maxGraph/maxGraph/blob/d3f6c50967f69acecda058de6a7217b8cb3f304f/packages/html/stories/PageBreaks.stories.js
If someone wants to contribute a fix, feel free to post a comment. In this case, consider migrating the story to TypeScript to ease the future maintenance (this easily detects missing imports for instance).
Be aware that adding the import probably won't make the PrintPreview work. In #532, there was the same issue. After having added the import, the "print preview" button now works but it opens a new empty tab.
Some additional work may be required.
IMHO, it is valid to provide a PR that fix the missing import (and other detected issues during development) even if all features of the story are not working. This is already a nice improvement. tbouffard commented on Sep 25, 2024 #537 fix the imports. The "Print" button now opens a new tab, but it doesn't show the vertices or edges.
4ddbdf5 may provide some ideas for a more complete fix (I didn't check this commit in details). reuse-ay commented on Oct 2, 2024 Additionally, compared to mxgraph,
- I noticed that when I open a new tab, the background is not colored.
- It seems that the title has not been set.
Reacted by Thomas Bouffard tbouffard commented on Oct 11, 2024 ℹ I am going to give a try to the fix of TemporaryCellStates seen in 4ddbdf5 tbouffard commented on Oct 11, 2024
MetadataMetadatabugSomething isn't working DevelopmentNo branches or pull requestsIssue actions
|