Open evilaliv3 opened 8 years ago
@MohammadYounes i was thinking this issue solved in bootstrap-inline-rtl.
Wasn't it?
It should be, see the tooltip at the demo site.
Can you provide me with a live demo ?
Sorry @MohammadYounes i think to know why we are facing this. We do not use only your patched library, but we use also angular-ui-bootstrap that implements all the javascript using the native angular javascript and that is probably buggy.
Yes, the native angular version uses its own scripts.
Tried using popover-placement="auto"
to handle elements that whistleblowers see. The results are not great.
The UI-Bootstrap libraries handling of auto postioning results in errors due to some unknown intraction with our css and html when top-left is chosen.
Exporting a function in GLTranslate and using like below will not work because the directive expects a literal string for good reason.
<label uib-popover="message" popover-placement="GLTranslate.displayRightToLeft() ? 'top' : 'right"></label>
Accompanying JS.
function langIsRTL(lang) {
return ["ar", "he", "ur"].indexOf(lang) !== -1;
}
// displayRTL can be used by interface elements to make decisions about how they
// ought to lay them selves out.
function displayRightToLeft() {
return langIsRTL(indirect.applanguage);
}
When using RTL design toolstips are not correctly aligned.
The issue is visible in the following screenshot: