After a lot of reading and searching SO threads, I almost have my popovers working as I want them with different languages - except for the following issue:
I have a difference in width of my bootstrap 3 popovers between ltr languages (English, French, German etc.) and rtl languages (Arabic, Hebrew, etc.).
In my ltr langauges the width of the popover is only as wide as it needs to be - with a max-width of 600px;, as displayed below:
In my rtl languages, the width of the popover is the max-width of 600px instead of the width being only as wide as it needs to be, as displayed below:
I am unsure why this is happening. I have read many, many SO posts and searched google extensively, but I cannot solve this issue.
Can anyone point out why there is a difference in the widths between my ltr and rtl language popovers? I am wanting to make the rtl popover only as wide as it needs to be. This may be a simple fix, but I just can not see the issue.
The above two screen shots show the same information (from the database), just using different CSS files depending on the rtl/ltr language.
Here is my ltr css code:
.popover {
direction: ltr;
position: fixed;
word-break: normal;
word-wrap: break-word;
z-index: 9999;
background-color: lavender;
}
.popover.right {
background-color: blueviolet;
margin-left: 17px;
max-width: 600px;
}
.popover.left {
background-color: gold;
margin-right: 0px;
min-width: 375px;
}
Here is the rtl css code:
.popover {
direction: rtl;
position: fixed;
word-break: normal;
word-wrap: break-word;
z-index: 9999;
background-color: khaki;
}
.popover.right {
background-color: indianred;
margin-left: 17px;
min-width: 375px;
}
.popover.left {
background-color: lightsteelblue;
margin-left: -17px;
max-width: 600px;
}