summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-15 13:08:11 +0100
committerWuzzy <almikes@aol.com>2016-12-15 13:08:11 +0100
commit95d6117a053a43e7bf2dad0ef1f4de699052b2ae (patch)
tree4aa5721e5aa56aa8d2fb26984ccd691a931358ae
parent3ad984b9e84eb57eb91e34c3b42f504ebde25a53 (diff)
Increase number of category buttons per column
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 7aa8809..9f67d27 100644
--- a/init.lua
+++ b/init.lua
@@ -40,8 +40,8 @@ doc.FORMSPEC.ENTRY_HEIGHT = doc.FORMSPEC.ENTRY_END_Y - doc.FORMSPEC.ENTRY_START_
local DOC_INTRO = S("This is the help.")
local CATEGORYFIELDSIZE = {
- WIDTH = 4,
- HEIGHT = 8,
+ WIDTH = math.ceil(doc.FORMSPEC.WIDTH / 4),
+ HEIGHT = math.floor(doc.FORMSPEC.HEIGHT-1),
}
doc.data = {}