Skip to content

Update removeItem()#3167

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
psyuktha:removeItem
Oct 24, 2024
Merged

Update removeItem()#3167
j9ac9k merged 1 commit intopyqtgraph:masterfrom
psyuktha:removeItem

Conversation

@psyuktha
Copy link
Copy Markdown
Contributor

As addressed in issue #3085
After removing the item, explicitly adjusted the row and column stretches to ensure the layout resizes correctly.
Key changes to the function are:

  • self.layout.setRowStretchFactor(r, 0) and self.layout.setColumnStretchFactor(c, 0): This explicitly clears the space previously reserved for the removed item.
  • self.layout.updateGeometry(): This forces the layout to recalculate after the item is removed.

As addressed in issue #3085
After removing the item, explicitly adjusted the row and column stretches to ensure the layout resizes correctly.
@psyuktha
Copy link
Copy Markdown
Contributor Author

@j9ac9k could you please review the changes done?

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Oct 19, 2024

@psyuktha I appreciate your enthusiasm in contribution to the library, but please keep in mind that I

  1. Have a full time job (that does not overlap with my maintainer responsibilities for pyqtgraph)
  2. Have family obligations
  3. Periodically go to areas with minimal cell phone reception or connectivity
  4. Am strictly a volunteer on this project.

My time to review PRs (or possibly write code) for the library may not match up with that of contributors. Pinging me every ~12 hours isn't going to get me to merge your PR any faster than otherwise, and it will just make me dread checking my notifications for greater detail.

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Oct 24, 2024

Thanks for the PR @psyuktha this LGTM, merging!

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.

2 participants