aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJez Ng2012-01-09 20:43:17 +0800
committerJez Ng2012-01-09 20:43:17 +0800
commitf6de023d964f2b4f8739e96361d542eb71d49dec (patch)
tree23627f29b9e8e2bdc9418dc4cb05b200f8c0fd05
parent3b9271aa437df94e307e585f1abf205fd72b71cb (diff)
downloadvimium-f6de023d964f2b4f8739e96361d542eb71d49dec.tar.bz2
Use JS to resize the help dialog automatically.
This works better than media queries. Reverts commit d71706a.
-rw-r--r--helpDialog.html16
1 files changed, 1 insertions, 15 deletions
diff --git a/helpDialog.html b/helpDialog.html
index 5ded51f2..aa534640 100644
--- a/helpDialog.html
+++ b/helpDialog.html
@@ -30,21 +30,6 @@
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; }
.vimiumColumn {
@@ -156,6 +141,7 @@
this.dialogElement = document.getElementById("vimiumHelpDialog");
this.dialogElement.getElementsByClassName("toggleAdvancedCommands")[0].addEventListener("click",
VimiumHelpDialog.toggleAdvancedCommands, false);
+ this.dialogElement.style.maxHeight = window.innerHeight - 80;
this.showAdvancedCommands(this.advancedCommandsVisible);
},