aboutsummaryrefslogtreecommitdiffstats
path: root/vimiumFrontend.js
diff options
context:
space:
mode:
authorPhil Crosby2011-02-09 23:11:18 -0800
committerPhil Crosby2011-02-09 23:13:06 -0800
commite6424ce09d27f74608caf69472630537260692ed (patch)
tree84865c4411fa6e3f955a3db47b87b5c2ad838c90 /vimiumFrontend.js
parenta036d2dac281b2528c2087b08839e118e3f449ae (diff)
downloadvimium-e6424ce09d27f74608caf69472630537260692ed.tar.bz2
Re-center the help dialog when it gets taller after clicking "show advanced commands"
Diffstat (limited to 'vimiumFrontend.js')
-rw-r--r--vimiumFrontend.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index b7f9308f..b14e02cc 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -653,12 +653,6 @@ function showHelpDialog(html, fid) {
container.getElementsByClassName("closeButton")[0].addEventListener("click", hideHelpDialog, false);
container.getElementsByClassName("optionsPage")[0].addEventListener("click",
function() { chrome.extension.sendRequest({ handler: "openOptionsPageInNewTab" }); }, false);
-
- var dialog = document.getElementById("vimiumHelpDialog");
- dialog.style.zIndex = "99999998";
- var zoomFactor = currentZoomLevel / 100.0;
- dialog.style.top =
- Math.max((window.innerHeight - dialog.clientHeight * zoomFactor) / 2.0, 20) / zoomFactor + "px";
}
function hideHelpDialog(clickEvent) {