RTL Layout Issue Fixed

This commit is contained in:
Devansh 2020-07-21 13:38:58 +05:30
parent c6e7ef3e5f
commit 8f7c711c43
1 changed files with 21 additions and 0 deletions

View File

@ -149,4 +149,25 @@
});
})()
</script>
<script>
$(document).ready(() => {
/* waiting for the window to appear */
let waitForEl = function(selector, callback) {
if (jQuery(selector).length) {
callback();
} else {
setTimeout(function() {waitForEl(selector, callback);}, 100);
}
};
/* positioning when .zoomWindow div available */
waitForEl('.zoomWindow', function() {
if ($('body').hasClass("rtl")) {
$('.zoomWindow').css('right', '522px');
}
});
});
</script>
@endpush