correct erroneous checkin from bug 218528.

This commit is contained in:
smontagu%smontagu.org 2007-05-05 04:37:08 +00:00
Родитель 822b80ade0
Коммит dbfc3e9ea3
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -236,14 +236,12 @@ var BookmarksMenu = {
else
border = size/2;
// We are going to invert the drop-location for RTL PersonalBar
isLtrPB = (window.getComputedStyle(document.getElementById("PersonalToolbar"),'').direction == 'ltr');
// in the first region?
if (clientCoordValue-coordValue < border)
return (isLtrPB? BookmarksUtils.DROP_BEFORE : BookmarksUtils.DROP_AFTER);
return BookmarksUtils.DROP_BEFORE;
// in the last region?
if (clientCoordValue-coordValue >= size-border)
return (isLtrPB? BookmarksUtils.DROP_AFTER : BookmarksUtils.DROP_BEFORE);
return BookmarksUtils.DROP_AFTER;
// must be in the middle somewhere
return BookmarksUtils.DROP_ON;
},