Skip to content

Conversation

@TeodorTaushanov
Copy link
Member

@TeodorTaushanov TeodorTaushanov commented Nov 5, 2025

JIRA: BGSOFUIRODOPI-3384

Certain styles for slotted elements in the footer and header are overridden, similar to how it is done in the UI5 dialog.

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Nov 10, 2025

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 10, 2025 12:02 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 11, 2025 13:13 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 14, 2025 14:32 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 17, 2025 12:48 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 17, 2025 12:55 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 18, 2025 12:26 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 19, 2025 15:15 Inactive
@TeodorTaushanov TeodorTaushanov changed the title wip(ui5-popover): implement resizable popover feat(ui5-popover): implement resizable popover Nov 19, 2025
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 20, 2025 12:54 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 20, 2025 13:41 Inactive
@TeodorTaushanov TeodorTaushanov requested review from a team and Stoev November 20, 2025 13:46
Copy link
Member

@alexandar-mitsev alexandar-mitsev left a comment

Choose a reason for hiding this comment

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

  • during the resize, the arrow constantly flickers. minor issue, but quite visible.
  • sometimes the resize arrow is on the wrong side. This happens if the opener is longer than the popover - e.g. in a very long date picker input, the popover is in leftmost position and the arrow is also in the left bottom arrow. To reproduce set resizable to true on the datepicker input (second input) on test/pages/Popover.html. Same is reproducible in the "Horizontal Align" test section in Popover.html
  • during resize - if you do it quick, the resizing starts to lag. Can stay like that, but if possible to fix, will be better

}

if (isClickInRect(event, popup.getBoundingClientRect())) {
if ((popup as Popover).isClicked(event)) {
Copy link
Member

Choose a reason for hiding this comment

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

it could be cleaner to have method isClicked in the Popup itself then override it in the Popover
this way, when someone adds a new type of Popup, this code will still work

or add a check in the beginning of the funcion that this is a popover

generally casting to Popover without being sure it is a popover could bring unexpected errors at runtime

const isRtl = this.isRtl;

const opener = this.getOpenerHTMLElement(this.opener);
const openerRect = opener!.getBoundingClientRect();
Copy link
Member

Choose a reason for hiding this comment

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

this sometimes throws error "TypeError: Cannot read properties of undefined (reading 'getBoundingClientRect')"

to reproduce - have a popover which has no opener, and opener is assigned only just before open. Then an error is thrown

I reproduced it by setting resizable to true and tested on /packages/main/test/pages/Popover.html

This leaves a number of popover opened and visible before clicking the button on the test page.

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.

4 participants