Commit 75d9ba4d authored by Dave Cooper's avatar Dave Cooper
Browse files

accept root-path into gdlResize

parent 6e07fc0c
......@@ -209,18 +209,20 @@ function encode64(input) {
//
var resizeTimer;
function gdlResize()
function gdlResize(rp = 'nil')
{
// if (document.getElementById('x3dom-1'))
// {}
//else
//{
console.log('Starting gdlResize');
clearTimeout(resizeTimer);
resizeTimer = setTimeout(function () {
gdlAjax(null, 'args=' + encode64('(:|iid| '+ doublequote + gdliid + doublequote + ' :|bashee| (:%rp% nil) :|function| :set-slot! :|arguments| (:viewport-dimensions (:width ' + (document.getElementById('viewport').getBoundingClientRect().width) + ' :length ' + (document.getElementById('viewport').getBoundingClientRect().height) + ')))'), true );}, 250);
gdlAjax(null, 'args=' + encode64('(:|iid| '+ doublequote + gdliid + doublequote + ' :|bashee| (:%rp% '+ rp + ') :|function| :set-slot! :|arguments| (:viewport-dimensions (:width ' + (document.getElementById('viewport').getBoundingClientRect().width) + ' :length ' + (document.getElementById('viewport').getBoundingClientRect().height) + ')))'), true );}, 250);
// }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment