mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-05-02 08:54:02 -04:00
Change const to a variable
This commit is contained in:
parent
aa8b06aed2
commit
4896a7dec7
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ export default Discourse.View.extend(CleansUp, {
|
||||||
if (rtl) { // The site direction is rtl
|
if (rtl) { // The site direction is rtl
|
||||||
position.right = $(window).width() - position.left + 10;
|
position.right = $(window).width() - position.left + 10;
|
||||||
position.left = 'auto';
|
position.left = 'auto';
|
||||||
const overage = ($(window).width() - 50) - (position.right + width);
|
let overage = ($(window).width() - 50) - (position.right + width);
|
||||||
if (overage < 0) {
|
if (overage < 0) {
|
||||||
position.right += overage;
|
position.right += overage;
|
||||||
position.top += target.height() + 48;
|
position.top += target.height() + 48;
|
||||||
|
@ -104,7 +104,7 @@ export default Discourse.View.extend(CleansUp, {
|
||||||
} else { // The site direction is ltr
|
} else { // The site direction is ltr
|
||||||
position.left += target.width() + 10;
|
position.left += target.width() + 10;
|
||||||
|
|
||||||
const overage = ($(window).width() - 50) - (position.left + width);
|
let overage = ($(window).width() - 50) - (position.left + width);
|
||||||
if (overage < 0) {
|
if (overage < 0) {
|
||||||
position.left += overage;
|
position.left += overage;
|
||||||
position.top += target.height() + 48;
|
position.top += target.height() + 48;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue