Index: trunk/extensions/MobileFrontend/javascripts/opensearch.js |
— | — | @@ -93,10 +93,11 @@ |
94 | 94 | function writeResults( sections ) { |
95 | 95 | var results = document.getElementById( 'results' ), suggestions, i, |
96 | 96 | suggestionListener, section, suggestionsResult, link, label, |
97 | | - sq = document.getElementById( 'sq' ); |
| 97 | + sq = document.getElementById( 'sq' ), |
| 98 | + header = document.getElementById( 'header' ); |
98 | 99 | |
99 | 100 | results.style.display = 'block'; |
100 | | - var top = sq.offsetParent.offsetTop + sq.offsetHeight + sq.offsetTop + 1; |
| 101 | + var top = sq.offsetParent.offsetTop + sq.offsetHeight + sq.offsetTop + 1 + header.offsetTop; |
101 | 102 | results.style.top = top + 'px'; |
102 | 103 | |
103 | 104 | if ( !sections || sections.length < 1 ) { |