question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edges between combos are not updated when combo size changes (using .update() method)

See original GitHub issue
  • [ V] I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Click on Hide nodes button and see that edge between combos (the blue one) is attached to the wrong position (not to the borders of combo and not to the anchor points defined above in graph options).

Environment Info
g6 3.8.4
System Windows 10
Browser Chrome 86.0.4240.198

This happens when I change combos’ padding to visually fit in the label within combo when all the nodes are hidden by using combo.update({padding: ...})

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Yanyan-Wangcommented, Nov 19, 2020

It might be a bug for rect type combo. We will try to fix it as soon as possible

0reactions
Yanyan-Wangcommented, Jan 20, 2021

update to v4.1.4 and see this demo pls: https://codesandbox.io/s/antv-g6-hide-nodes-forked-r1jr8?file=/src/App.tsx

note that call graph.data(data) graph.render() or graph.read(data) only at the first time you render the graph. If you wanna change the whole data, call graph.changeData(newData) instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft PowerPoint | linkedin-skill-assessments-quizzes
When you create a new, blank presentation, you begin with one blank slide. ... Advanced -> Image Size and Quality -> Do not...
Read more >
Solved: Combo box not updating field in edit mode
I have a series of cascading combo boxes. The first combo box is used to define the contents of the following combo boxes,...
Read more >
MS Access 2010: Unbound combo box won't update
I have a popup form for data entry, a pop up for new testing sites, and a form that uses two unbound combos...
Read more >
K maximum sum combinations from two arrays - GeeksforGeeks
A sum combination is made by adding one element from array A and ... Approach 1 (Naive Algorithm): We can use Brute force...
Read more >
Visualization: Combo Chart - Google Developers
A chart that lets you render each series as a different marker type from the ... An array of sizes (as data values,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found