Skip to content

#11983 – Preview tooltip is empty (no molecule) if monomer loaded from MOL with all zero atom coordinates - #12034

Open
OnurKucukoz wants to merge 1 commit into
masterfrom
11983-preview-tooltip-is-empty-no-molecule-if-monomer-loaded-from-mol-with-all-zero-atom-coordinates
Open

OnurKucukoz wants to merge 1 commit into
masterfrom
11983-preview-tooltip-is-empty-no-molecule-if-monomer-loaded-from-mol-with-all-zero-atom-coordinates

Conversation

@OnurKucukoz

@OnurKucukoz OnurKucukoz commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

How the feature works? / How did you fix the issue?

Monomers imported from a MOL file with overlapping atom coordinates produced an empty preview tooltip.

Prevented zero-sized SVG dimensions and applied a fixed rendering scale for zero-sized structures. The preview now displays the overlapping atoms and bonds in the center without excessive enlargement.

Added an E2E regression test and the original V3000 fixture. The test verifies that the preview SVG has a finite viewBox with positive dimensions. It fails without the fix and passes with it.

Closes #11983

Video

Issue.11983.-.Manual.verification.mp4

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment