aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/tooltip.js
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-02-14 19:58:51 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-02-14 19:58:51 +0100
commit7dca3f4d6c22db2682220309a21362d943e4265e (patch)
treeea9a3b9fb6a344da805654732b22dc78c2107420 /phpBB/adm/style/tooltip.js
parentf29784e288a45a05a5a6953217c6e2c0a0ed352a (diff)
parent8c89194cc6f197c302eae00b6bed565b3e5653d4 (diff)
downloadforums-7dca3f4d6c22db2682220309a21362d943e4265e.tar
forums-7dca3f4d6c22db2682220309a21362d943e4265e.tar.gz
forums-7dca3f4d6c22db2682220309a21362d943e4265e.tar.bz2
forums-7dca3f4d6c22db2682220309a21362d943e4265e.tar.xz
forums-7dca3f4d6c22db2682220309a21362d943e4265e.zip
Merge pull request #5081 from hubaishan/ticket/15492
[ticket/15492] Fix permission role combobox in RTL
Diffstat (limited to 'phpBB/adm/style/tooltip.js')
-rw-r--r--phpBB/adm/style/tooltip.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/phpBB/adm/style/tooltip.js b/phpBB/adm/style/tooltip.js
index 8781e2b509..7b7abb11e6 100644
--- a/phpBB/adm/style/tooltip.js
+++ b/phpBB/adm/style/tooltip.js
@@ -130,10 +130,17 @@ phpbb.positionTooltip = function ($element) {
$element = $element.parent();
offset = $element.offset();
- $('#_tooltip_container').css({
- top: offset.top + 30,
- left: offset.left - 205
- });
+ if ($('body').hasClass('rtl')) {
+ $('#_tooltip_container').css({
+ top: offset.top + 30,
+ left: offset.left + 255
+ });
+ } else {
+ $('#_tooltip_container').css({
+ top: offset.top + 30,
+ left: offset.left - 205
+ });
+ }
};
/**