Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gendl
gendl
Commits
24a2cc80
Commit
24a2cc80
authored
Dec 20, 2021
by
Dave Cooper
Browse files
Merge branch 'hotfix/svg-resize'
parents
6e07fc0c
75d9ba4d
Pipeline
#5524
passed with stages
in 10 minutes and 44 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
gwl/static/gwl/js/gdlajax1595.js
View file @
24a2cc80
...
...
@@ -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
);
// }
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment