-
Notifications
You must be signed in to change notification settings - Fork 270
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
fix(ui5-popover): fix arrow position in RTL direction #10008
Closed
+276
−0
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
6f8ae26
fix(ui5-popover): fix arrow position in RTL direction
LidiyaGeorgieva 469fc78
fix(ui5-popover): more use cases and fixes
LidiyaGeorgieva a529548
Merge branch 'main' of https://github.com/SAP/ui5-webcomponents into …
LidiyaGeorgieva f0817e1
fix(ui5-popover): rename 'specialPositioning' property
LidiyaGeorgieva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<!DOCTYPE html> | ||
<html dir="rtl"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<title>Popover</title> | ||
|
||
<script data-ui5-config type="application/json"> | ||
{ | ||
"language": "EN", | ||
"libs": "sap.ui.webc.main", | ||
"rtl": true | ||
} | ||
</script> | ||
|
||
|
||
<script src="%VITE_BUNDLE_PATH%" type="module"></script> | ||
|
||
|
||
<link rel="stylesheet" type="text/css" href="./styles/Popover.css"> | ||
|
||
<script> | ||
// delete Document.prototype.adoptedStyleSheets | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<style> | ||
|
||
.center { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
body { | ||
padding-top: 100px; | ||
} | ||
</style> | ||
|
||
<span> Popover placement Top</span> | ||
<div class="center"> | ||
<ui5-button id="btn1">Open</ui5-button> | ||
</div> | ||
<br> | ||
|
||
<span> Popover placement Bottom</span> | ||
<div class="center"> | ||
<ui5-button id="btn2">Open</ui5-button> | ||
</div> | ||
<br> | ||
|
||
<span> Popover placement Start</span> | ||
<ui5-button id="btn3">Open</ui5-button> | ||
<br> | ||
|
||
<ui5-button id="btn4">Open</ui5-button> | ||
<span> Popover placement End</span> | ||
|
||
<ui5-popover id="respPopover1" opener="btn1" placement="Top"> | ||
<div class="popover-content"> | ||
<ui5-label for="emailInput" required show-colon>Email</ui5-label> | ||
</div> | ||
</ui5-popover> | ||
|
||
<ui5-popover id="respPopover2" opener="btn2" placement="Bottom"> | ||
<div class="popover-content"> | ||
<ui5-label for="emailInput" required show-colon>Email</ui5-label> | ||
</div> | ||
</ui5-popover> | ||
|
||
<ui5-popover id="respPopover3" opener="btn3" placement="Start"> | ||
<div class="popover-content"> | ||
<ui5-label for="emailInput" required show-colon>Email</ui5-label> | ||
</div> | ||
</ui5-popover> | ||
|
||
<ui5-popover id="respPopover4" opener="btn4" placement="End"> | ||
<div class="popover-content"> | ||
<ui5-label for="emailInput" required show-colon>Email</ui5-label> | ||
</div> | ||
</ui5-popover> | ||
|
||
<div style="height: 200px;"></div> | ||
|
||
<script> | ||
const btn1 = document.getElementById("btn1"); | ||
const respPopover1 = document.getElementById("respPopover1"); | ||
|
||
const btn2 = document.getElementById("btn2"); | ||
const respPopover2 = document.getElementById("respPopover2"); | ||
|
||
const btn3 = document.getElementById("btn3"); | ||
const respPopover3 = document.getElementById("respPopover3"); | ||
|
||
|
||
const btn4 = document.getElementById("btn4"); | ||
const respPopover4 = document.getElementById("respPopover4"); | ||
|
||
|
||
btn1.addEventListener("click", () => { | ||
respPopover1.open = !respPopover1.open; | ||
}); | ||
|
||
btn2.addEventListener("click", () => { | ||
respPopover2.open = !respPopover2.open; | ||
}); | ||
|
||
btn3.addEventListener("click", () => { | ||
respPopover3.open = !respPopover3.open; | ||
}); | ||
|
||
btn4.addEventListener("click", () => { | ||
respPopover4.open = !respPopover4.open; | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scrollbar is on the right side on Firefox.
Check why does it behave differently on Chromium based browsers only in iframes. Is this a known bug of Chromium?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately the Firefox behavior is the wrong one.
Here is open issue on the topic: https://bugzilla.mozilla.org/show_bug.cgi?id=619963
And also older report for Chromium: https://issues.chromium.org/issues/40322053