Showing 1 changed files with 8 additions and 1 deletions
+8 -1
Nasal/menu.nas
... ...
@@ -163,7 +163,14 @@ var pageClass = {
163 163
         state.scroll.offset = 0;
164 164
     },
165 165
     
166
-    draw : func (id, geometry, objects, scroll = nil) {
166
+    draw : func (id, geometry, objects = nil, scroll = nil) {
167
+        if (typeof(geometry) == 'vector') {
168
+            if (typeof(objects) == 'hash')
169
+                scroll = objects;
170
+            objects  = geometry;
171
+            geometry = {autogeom: 1};
172
+        }
173
+
167 174
         if (contains(me.window, id ~ '-bg')) {
168 175
             logprint(LOG_DEBUG, 'objet ' ~ id ~ ' already exists');
169 176
             return;