Skip to content
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

feat: add properties to set popover content width and height #7442

Merged
merged 2 commits into from
May 24, 2024

Conversation

web-padawan
Copy link
Member

Description

Based on #5187

Added API to set vaadin-popover overlay content width and height: _contentWidth and _contentHeight properties.
These are marked as protected to align with vaadin-confirm-dialog - see how the Flow counterpart uses them.

Type of change

  • Feature

@web-padawan web-padawan requested a review from vursen May 24, 2024 08:09
Copy link
Member Author

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

UPD: as discussed internally, decided to change contentWidth and contentHeight to be public:

I do think it would make sense to have in WC too. I suspect it's a lot more common to want to define a particular size to a popover, since you also position them in a particular way.

Copy link

sonarcloud bot commented May 24, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@web-padawan web-padawan merged commit 66675cc into main May 24, 2024
9 checks passed
@web-padawan web-padawan deleted the feat/popover-dimensions branch May 24, 2024 11:24
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants