-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore: fix custom widget height issue #39428
Conversation
WalkthroughThe pull request enhances the custom widget’s height management. In the main hook, the logic now returns immediately if the canvas element is missing and introduces an Changes
Sequence Diagram(s)sequenceDiagram
participant C as Component
participant U as useCustomWidgetHeight
participant RO as ResizeObserver
participant canvas as Canvas Element
C->>U: Mount component
U->>canvas: Check for existence
alt Canvas not found
U-->>C: Exit function early
else Canvas found
U->>U: Define and call updateHeight (set initial height)
U->>RO: Initialize ResizeObserver on canvas
RO->>U: On resize event, trigger updateHeight
U->>canvas: Update height based on size
end
C->>RO: Component unmount
RO->>RO: Disconnect observer (cleanup)
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
/build-deploy-preview skip-tests=true |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/13515111471. |
Deploy-Preview-URL: https://ce-39428.dp.appsmith.com |
/build-deploy-preview |
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/13515643323. |
Deploy-Preview-URL: https://ce-39428.dp.appsmith.com |
Fixes #39406
/test Widgets
Summary by CodeRabbit
New Features
Refactor
Chores
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13516801371
Commit: fa729e7
Cypress dashboard.
Tags:
@tag.Widget
Spec:
Tue, 25 Feb 2025 09:41:37 UTC