Bug #17848 » bug_6831_clickmenu-border.diff
typo3/js/clickmenu.js (working copy) | ||
---|---|---|
y += (dimsWindow.height - dims.height - relative.Y);
|
||
}
|
||
}
|
||
// adjusting the X position like Y above
|
||
// adjusting the X position like Y above, but adjust it on the left side of the viewport if it does not fit completely
|
||
if (dimsWindow.width - dims.width < relative.X) {
|
||
if (relative.X > dims.width) {
|
||
x -= (dims.width - 10);
|
||
} else {
|
||
} else if ( (dimsWindow.width - dims.width - relative.X) < offset.left ) {
|
||
x = offset.left;
|
||
}
|
||
else {
|
||
x += (dimsWindow.width - dims.width - relative.X);
|
||
}
|
||
}
|