-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui5-popover): fix arrow position in RTL direction
When the popover is inside iFrame in RTL direction and there is a scrollbar (in left) - the position of the popover (and its arrow) should be adjusted (moved to left with the size of the scrollbar). fixes: #9966
- Loading branch information
1 parent
cd7e202
commit 6f8ae26
Showing
4 changed files
with
116 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!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%; | ||
} | ||
</style> | ||
|
||
<div class="center"> | ||
<ui5-button id="btn1">Open</ui5-button> | ||
</div> | ||
|
||
<ui5-responsive-popover id="respPopover1" opener="btn1" placement="Bottom" horizontalAlign="Center"> | ||
<div class="popover-content"> | ||
<ui5-label for="emailInput" required show-colon>Email</ui5-label> | ||
</div> | ||
</ui5-responsive-popover> | ||
|
||
<div style="height: 1000px;"></div> | ||
|
||
<script> | ||
const btn1 = document.getElementById("btn1"); | ||
const respPopover1 = document.getElementById("respPopover1"); | ||
|
||
|
||
btn1.addEventListener("click", () => { | ||
respPopover1.open = !respPopover1.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