Skip to content

Commit f9b95d1

Browse files
Removes dependency on jQuery
1 parent fb378c4 commit f9b95d1

File tree

1 file changed

+6
-2
lines changed
  • src/stepfunctions/workflow/widgets

1 file changed

+6
-2
lines changed

Diff for: src/stepfunctions/workflow/widgets/graph.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@
5555
});
5656
5757
require(['sfn'], function(sfn) {
58+
var element = document.getElementById('$element_id')
59+
5860
var options = {
59-
width: $$('#$element_id').width(),
61+
width: parseFloat(getComputedStyle(element, null).width.replace("px", "")),
6062
height: 600,
6163
layout: '$layout',
6264
resizeHeight: true
@@ -78,8 +80,10 @@
7880
});
7981
8082
require(['sfn'], function(sfn) {
83+
var element = document.getElementById('$element_id')
84+
8185
var options = {
82-
width: $$('#$element_id').width(),
86+
width: parseFloat(getComputedStyle(element, null).width.replace("px", "")),
8387
height: 1000,
8488
layout: '$layout',
8589
resizeHeight: true

0 commit comments

Comments
 (0)