File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -252,15 +252,7 @@ export default function plotComponentFactory(Plotly) {
252
252
}
253
253
254
254
render ( ) {
255
- return (
256
- < div
257
- style = { {
258
- position : 'relative' ,
259
- display : 'inline-block' ,
260
- } }
261
- ref = { this . getRef }
262
- />
263
- ) ;
255
+ return < div style = { this . props . style } ref = { this . getRef } /> ;
264
256
}
265
257
}
266
258
@@ -276,6 +268,7 @@ export default function plotComponentFactory(Plotly) {
276
268
onError : PropTypes . func ,
277
269
onUpdate : PropTypes . func ,
278
270
debug : PropTypes . bool ,
271
+ style : PropTypes . object ,
279
272
} ;
280
273
281
274
for ( let i = 0 ; i < eventNames . length ; i ++ ) {
@@ -286,6 +279,7 @@ export default function plotComponentFactory(Plotly) {
286
279
debug : false ,
287
280
fit : false ,
288
281
data : [ ] ,
282
+ style : { position : 'relative' , display : 'inline-block' } ,
289
283
} ;
290
284
291
285
return PlotlyComponent ;
You can’t perform that action at this time.
0 commit comments