diff options
| author | Ilya | 2011-08-19 18:12:56 -0700 |
|---|---|---|
| committer | Ilya | 2011-08-19 18:12:56 -0700 |
| commit | 4dbeed095bfb2de9affa3bc03050d5bebc6011ad (patch) | |
| tree | bf1cbcbf68ebbfa6c2dd83c2829be3a62b00bfac /completionDialog.js | |
| parent | 2b94c0df13cc55ec062a314f9844b273d375de08 (diff) | |
| parent | ea26b8d42b258835511153ffc09776bfd1aa7ab6 (diff) | |
| download | vimium-4dbeed095bfb2de9affa3bc03050d5bebc6011ad.tar.bz2 | |
Merge pull request #379 from has2k1/patch-1
Prevent bookmark completion box from overflowing.
Diffstat (limited to 'completionDialog.js')
| -rw-r--r-- | completionDialog.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/completionDialog.js b/completionDialog.js index 1b2d3646..7413d05a 100644 --- a/completionDialog.js +++ b/completionDialog.js @@ -118,7 +118,7 @@ } } - container.style.top=(window.innerHeight/2-container.clientHeight/2) + "px"; + container.style.top=Math.max(0,(window.innerHeight/2-container.clientHeight/2)) + "px"; container.style.left=(window.innerWidth/2-container.clientWidth/2) + "px"; } }; |
