mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 12:11:16 -05: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
|
||||
position.right = $(window).width() - position.left + 10;
|
||||
position.left = 'auto';
|
||||
const overage = ($(window).width() - 50) - (position.right + width);
|
||||
let overage = ($(window).width() - 50) - (position.right + width);
|
||||
if (overage < 0) {
|
||||
position.right += overage;
|
||||
position.top += target.height() + 48;
|
||||
|
@ -104,7 +104,7 @@ export default Discourse.View.extend(CleansUp, {
|
|||
} else { // The site direction is ltr
|
||||
position.left += target.width() + 10;
|
||||
|
||||
const overage = ($(window).width() - 50) - (position.left + width);
|
||||
let overage = ($(window).width() - 50) - (position.left + width);
|
||||
if (overage < 0) {
|
||||
position.left += overage;
|
||||
position.top += target.height() + 48;
|
||||
|
|
Loading…
Reference in a new issue