Browse Source

Trigger: block dont take space when hidden, remove Hours:

Rorist 7 years ago
parent
commit
4e5d1f4f2e
2 changed files with 2 additions and 1 deletions
  1. 2 0
      main.js
  2. 0 1
      trigger.html

+ 2 - 0
main.js

@@ -11,9 +11,11 @@ function toggleDiv(div, show) {
     "use strict";
     if (show) {
         div.style.visibility = "visible";
+        div.style.overflow = "none";
         div.style.height = "auto";
     } else {
         div.style.visibility = "hidden";
+        div.style.overflow = "hidden";
         div.style.height = "0px";
     }
 }

+ 0 - 1
trigger.html

@@ -20,7 +20,6 @@
 
       <div id="open-block" style="visibility:hidden;">
         <form name="hoursform" id="hoursform">
-          <label for="hours">Hours : </label>
           <div class="plusminux" onclick="changeHour(0)">-</div>
           <input id="hours" name="hours" size="2" class="text-input" maxlength=
           "2" onkeyup="checkHours(this)" value="1">