diff options
Diffstat (limited to 'templates/html/search.js')
-rw-r--r-- | templates/html/search.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/html/search.js b/templates/html/search.js index fb226f7..54ad133 100644 --- a/templates/html/search.js +++ b/templates/html/search.js @@ -146,6 +146,7 @@ function SearchBox(name, resultsPath, inFrame, label, extension) // show search selection popup searchSelectWindow.style.display='block'; left -= searchSelectWindow.offsetWidth; + if (left<10) left=10; searchSelectWindow.style.left = left + 'px'; searchSelectWindow.style.top = top + 'px'; } @@ -383,6 +384,7 @@ function SearchBox(name, resultsPath, inFrame, label, extension) var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1; domPopupSearchResultsWindow.style.display = 'block'; left -= domPopupSearchResults.offsetWidth; + if (left<10) left=10; domPopupSearchResultsWindow.style.top = top + 'px'; domPopupSearchResultsWindow.style.left = left + 'px'; } |