-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[ui] NodeActions : fix position on swiching status #2981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -90,16 +90,20 @@ Item { | |||||
| } | ||||||
| } | ||||||
|
|
||||||
| onHeightChanged: { | ||||||
| Qt.callLater(actionHeader.updatePosition) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| } | ||||||
|
|
||||||
| onWidthChanged: { | ||||||
| updatePosition() | ||||||
| Qt.callLater(actionHeader.updatePosition) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| } | ||||||
|
|
||||||
| // Update position when the user moves on the graph | ||||||
| Connections { | ||||||
| target: root.draggable | ||||||
| function onXChanged() { actionHeader.updatePosition() } | ||||||
| function onYChanged() { actionHeader.updatePosition() } | ||||||
| function onScaleChanged() { actionHeader.updatePosition() } | ||||||
| function onXChanged() { Qt.callLater(actionHeader.updatePosition) } | ||||||
| function onYChanged() { Qt.callLater(actionHeader.updatePosition) } | ||||||
| function onScaleChanged() { Qt.callLater(actionHeader.updatePosition) } | ||||||
| } | ||||||
|
|
||||||
| // Update position when nodes are moved | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,7 +18,9 @@ ColumnLayout { | |||||
|
|
||||||
| onChunksChanged: { | ||||||
| // When the list changes, ensure the current index is in the new range | ||||||
| if (currentIndex >= chunks.count) | ||||||
| if (!chunks) | ||||||
| currentIndex = -1 | ||||||
| else if (chunks && currentIndex >= chunks.count) | ||||||
|
||||||
| else if (chunks && currentIndex >= chunks.count) | |
| else if (currentIndex >= chunks.count) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before the
if (!selectedNodeDelegate || !draggable) return, I would add: