GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] PageBreak Story: "Print" does not work. · Issue #535 · maxGraph/maxGraph

[BUG] PageBreak Story: "Print" does not work. #535

New issue
Copy link
New issue
Copy link
Closed
#546
Closed
[BUG] PageBreak Story: "Print" does not work.#535
#546
Copy link
Assignees
reuse-ay
Labels
bugSomething isn't working
Milestone
0.13.1

Description

@reuse-ay
reuse-ay
opened on Sep 18, 2024
Issue body actions

Describe the bug

In page break story, "Print" button does not work.

To Reproduce

Steps to reproduce the behavior:

  1. Go to story.
  2. 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:
スクリーンショット 2024-09-18 090222

Activity

  1. reuse-ay
    added
    bugSomething isn't working
    triageIssue/PR under review for categorization
    on Sep 18, 2024
  2. tbouffard
    removed
    triageIssue/PR under review for categorization
    on Sep 20, 2024
  3. tbouffard commented on Sep 20, 2024

    @tbouffard
    tbouffard
    on Sep 20, 2024
    Member
    More actions

    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.

    Reacted by reuse-ay
  4. tbouffard
    assigned
    reuse-ay
    on Sep 23, 2024
  5. tbouffard
    added a commit that references this issue on Sep 23, 2024

    fix(story): convert page-breaks story to TS and fix imports (#537)

    a5820a6
  6. tbouffard commented on Sep 25, 2024

    @tbouffard
    tbouffard
    on Sep 25, 2024
    Member
    More actions

    #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).

    Reacted by reuse-ay
  7. reuse-ay commented on Oct 2, 2024

    @reuse-ay
    reuse-ay
    on Oct 2, 2024
    Author
    More actions

    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
  8. tbouffard commented on Oct 11, 2024

    @tbouffard
    tbouffard
    on Oct 11, 2024
    Member
    More actions

    ℹ I am going to give a try to the fix of TemporaryCellStates seen in 4ddbdf5

    Reacted by reuse-ay
  9. tbouffard commented on Oct 11, 2024

    @tbouffard
    tbouffard
    on Oct 11, 2024
    Member
    More actions

    @reuse-ay #546 should fix most of the remaining problems.

    Reacted by reuse-ay
  10. tbouffard
    added this to the 0.14.0 milestone on Oct 27, 2024
  11. tbouffard
    closed this as completedin #546on Oct 27, 2024
  12. tbouffard
    modified the milestones: 0.14.0, 0.13.1 on Nov 4, 2024
  13. tbouffard
    added a parent issue on Jan 20, 2025
    • Ensure that the stories work as the mxGraph examples #505
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @reuse-ay
    reuse-ay

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    • 0.13.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.