summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2018-01-10 21:19:43 +0100
committerRoland Stigge <stigge@antcom.de>2018-01-10 21:19:43 +0100
commit42573fe80d35d4cb411944ae80bea6e582f5b249 (patch)
treebe0efe63c7d4c7cfa347129969f65fe4c1b9d729
parent188a87d1a66f09dc7b224b89e6c1c16d77681423 (diff)
Handle small dialog windows
-rw-r--r--TODO1
-rw-r--r--html/index.html25
-rw-r--r--html/webbox.css7
-rw-r--r--html/webbox.js10
4 files changed, 19 insertions, 24 deletions
diff --git a/TODO b/TODO
index e803457..0e8f8c0 100644
--- a/TODO
+++ b/TODO
@@ -4,7 +4,6 @@ Prio 1 (for next version)
handle writability
rename function
gallery
-scroll in dialog/menu / handle too small popup window
Prio 2 (for future versions)
diff --git a/html/index.html b/html/index.html
index 92fdc78..43ef009 100644
--- a/html/index.html
+++ b/html/index.html
@@ -26,9 +26,6 @@
<div id="list">
</div>
- <div id="debug1">
- </div>
-
<div class="greyout fullscreen" id="greyout" hidden>
</div>
@@ -40,16 +37,18 @@
</div>
<div class="menuwindow" id="menuwindow" hidden>
- <table class="menudialog">
- <tr><td class="entry" onclick="hideMenu(); createDir();">New Folder</td></tr>
- <tr><td class="entry" onclick="hideMenu(); download();">Download</td></tr>
- <tr><td class="entry" onclick="hideMenu(); upload();">Upload</td></tr>
- <tr><td class="entry" onclick="hideMenu(); deleteItems();">Delete</td></tr>
- <tr><td class="entry" onclick="hideMenu(); move();">Move</td></tr>
- <tr><td class="entry" onclick="hideMenu(); info();">Info</td></tr>
- <tr><td class="entry" onclick="hideMenu(); selectAll();">Select/Unselect All</td></tr>
- <tr><td class="entry" onclick="hideMenu();">Close Menu</td></tr>
- </table>
+ <div class="menudiv">
+ <table class="menudialog">
+ <tr><td class="entry" onclick="hideMenu(); createDir();">New Folder</td></tr>
+ <tr><td class="entry" onclick="hideMenu(); download();">Download</td></tr>
+ <tr><td class="entry" onclick="hideMenu(); upload();">Upload</td></tr>
+ <tr><td class="entry" onclick="hideMenu(); deleteItems();">Delete</td></tr>
+ <tr><td class="entry" onclick="hideMenu(); move();">Move</td></tr>
+ <tr><td class="entry" onclick="hideMenu(); info();">Info</td></tr>
+ <tr><td class="entry" onclick="hideMenu(); selectAll();">Select/Unselect All</td></tr>
+ <tr><td class="entry" onclick="hideMenu();">Close Menu</td></tr>
+ </table>
+ </div>
</div>
<div id="create-dir-dialog" hidden>
diff --git a/html/webbox.css b/html/webbox.css
index 19d303e..ffb16cc 100644
--- a/html/webbox.css
+++ b/html/webbox.css
@@ -82,6 +82,11 @@ table.menudialog {
width: 100%;
}
+.menudiv {
+ height: 100%;
+ overflow-y: scroll;
+}
+
table.menudialog td.entry {
cursor: pointer;
border-width: 0;
@@ -92,6 +97,8 @@ table.menudialog td.entry {
}
.dialog {
+ height: calc(100% - 85px);
+ overflow-y: scroll;
}
.textinput {
diff --git a/html/webbox.js b/html/webbox.js
index 01738be..296429b 100644
--- a/html/webbox.js
+++ b/html/webbox.js
@@ -97,16 +97,6 @@ function getSelectedFiles() {
return result;
}
-/*
-var debugc = 0;
-
-function debugf() {
- debug1 = document.getElementById("debug1");
- debug1.innerHTML = debugc;
- debugc++;
-}
-*/
-
// As long as this is 1, the mouse was pressed less than 1 second ago
var mouseShortFlag = 0;
var mouseTimeout = undefined;