diff options
Diffstat (limited to 'helpDialog.html')
| -rw-r--r-- | helpDialog.html | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/helpDialog.html b/helpDialog.html index 51ff1692..5ded51f2 100644 --- a/helpDialog.html +++ b/helpDialog.html @@ -28,6 +28,22 @@ top:50px; -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 6px; z-index:99999998; + overflow-y: scroll; + } + @media screen and (max-height: 600px) { + #vimiumHelpDialog { + height: 430px; + } + } + @media screen and (max-height: 500px) { + #vimiumHelpDialog { + height: 330px; + } + } + @media screen and (max-height: 400px) { + #vimiumHelpDialog { + height: 230px; + } } #vimiumHelpDialog a { color:blue; } #vimiumTitle, #vimiumTitle * { font-size:20px; } @@ -141,7 +157,6 @@ this.dialogElement.getElementsByClassName("toggleAdvancedCommands")[0].addEventListener("click", VimiumHelpDialog.toggleAdvancedCommands, false); this.showAdvancedCommands(this.advancedCommandsVisible); - this.centerDialog(); }, /* @@ -153,7 +168,6 @@ chrome.extension.sendRequest({ handler: "saveHelpDialogSettings", showAdvancedCommands: VimiumHelpDialog.advancedCommandsVisible }); VimiumHelpDialog.showAdvancedCommands(VimiumHelpDialog.advancedCommandsVisible); - VimiumHelpDialog.centerDialog(); }, showAdvancedCommands: function(visible) { @@ -162,14 +176,7 @@ var advanced = VimiumHelpDialog.dialogElement.getElementsByClassName("advanced"); for (var i = 0; i < advanced.length; i++) advanced[i].style.display = (visible ? "table-row" : "none"); - }, - - centerDialog: function() { - var zoomFactor = currentZoomLevel / 100.0; - this.dialogElement.style.top = Math.max( - (window.innerHeight - this.dialogElement.clientHeight * zoomFactor) / 2.0, - 20) / zoomFactor + "px"; - } + } }; VimiumHelpDialog.init(); |
