File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -226,8 +226,8 @@ export default class Display {
226
226
}
227
227
228
228
resized ( ) {
229
- var newWidth = this . el . clientWidth
230
- var newHeight = this . el . clientHeight
229
+ var newWidth = this . el ? this . el . clientWidth : this . svgContainer . clientWidth
230
+ var newHeight = this . el ? this . el . clientHeight : this . svgContainer . clientHeight
231
231
232
232
var xDomain = this . xScale . domain ( )
233
233
var xFactor = newWidth / this . width
Original file line number Diff line number Diff line change @@ -223,6 +223,14 @@ export default class Transitive {
223
223
. style ( 'height' , height + 'px' )
224
224
this . display . resized ( )
225
225
}
226
+
227
+ /**
228
+ * trigger a display resize action (for externally-managed SVG containers)
229
+ */
230
+
231
+ resized ( ) {
232
+ this . display . resized ( )
233
+ }
226
234
}
227
235
228
236
/**
You can’t perform that action at this time.
0 commit comments