Skip to content

Graph Panel widget: improve graph panel resizing and visibility handling#477

Merged
agarny merged 2 commits intoopencor:mainfrom
agarny:issue473
Mar 25, 2026
Merged

Graph Panel widget: improve graph panel resizing and visibility handling#477
agarny merged 2 commits intoopencor:mainfrom
agarny:issue473

Conversation

@agarny
Copy link
Contributor

@agarny agarny commented Mar 25, 2026

Fixes #473.

Copilot AI review requested due to automatic review settings March 25, 2026 01:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the Graph Panel widget’s behavior around resizing/margin measurement and removes the previous visibility-based rendering workaround (per #473), while bumping package versions.

Changes:

  • Remove isVisible/visible/invisible handling from GraphPanelWidget and simplify initial rendering.
  • Add a guard to avoid margin measurement when the plot container has zero size.
  • Bump renderer and root package versions from 0.20260325.0 to 0.20260325.1.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/renderer/src/components/widgets/GraphPanelWidget.vue Removes visibility gating, adds size guard for margin measurement, and triggers resize after Plotly.react() to keep alignment.
src/renderer/package.json Version bump.
package.json Version bump.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny merged commit ee6f5c1 into opencor:main Mar 25, 2026
13 checks passed
@agarny agarny deleted the issue473 branch March 25, 2026 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Graph Panel widget: improve graph panel resizing and visibility handling

2 participants