Skip to content

Conversation

@TeodorTaushanov
Copy link
Member

@TeodorTaushanov TeodorTaushanov commented Nov 3, 2025

fix horizontal placement (Start and End) in rtl mode
fix usage of placement and horizontalAlign in the framework

fixes #12603

@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Nov 3, 2025

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 3, 2025 14:26 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview November 4, 2025 13:05 Inactive
@TeodorTaushanov TeodorTaushanov changed the title wip(ui5-popover): fix usage of placement and horizontalAlign fix(ui5-popover): fix horizontal placement (Start and End) in rtl mode Nov 4, 2025

if (this.isRtl) {
if (placement === PopoverPlacement.Start) {
placement = PopoverPlacement.End;
Copy link
Contributor

Choose a reason for hiding this comment

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

Start means start regardless of RTL, I find this confusing. Maybe you want to use Left/Right here? the switch statement below also uses Top/Bottom, which are actual directions and not logical directions.

Copy link
Member Author

Choose a reason for hiding this comment

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

The method is called getActualPlacement and we need to calc the actual placement depending on rtl and whether there is a place at the specified placement.

Top/Bottom is another question for another time.

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.

[ui5-popover]: incorrect usage of placement inside project

4 participants