MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 105: | Line 105: | ||
// 팝업이 브라우저 창 오른쪽으로 벗어나는 경우 | // 팝업이 브라우저 창 오른쪽으로 벗어나는 경우 | ||
if ((tooltipLeft + tooltipWidth) > windowWidth) { | if ((tooltipLeft + tooltipWidth) > windowWidth) { | ||
console.log((tooltipLeft + tooltipWidth), windowWidth) | |||
tooltipLeft = windowWidth - tooltipWidth - 20; | tooltipLeft = windowWidth - tooltipWidth - 20; | ||
console.log(tooltipLeft); | |||
} | } | ||