File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -317,12 +317,20 @@ export default class Mapbox {
317
317
// This eliminates the timing issue between calling resize() and DOM update
318
318
/* eslint-disable accessor-pairs */
319
319
const { container} = props ;
320
- Object . defineProperty ( container , 'offsetWidth' , { get : ( ) => this . width } ) ;
321
- Object . defineProperty ( container , 'clientWidth' , { get : ( ) => this . width } ) ;
320
+ Object . defineProperty ( container , 'offsetWidth' , {
321
+ configurable : true ,
322
+ get : ( ) => this . width
323
+ } ) ;
324
+ Object . defineProperty ( container , 'clientWidth' , {
325
+ configurable : true ,
326
+ get : ( ) => this . width
327
+ } ) ;
322
328
Object . defineProperty ( container , 'offsetHeight' , {
329
+ configurable : true ,
323
330
get : ( ) => this . height
324
331
} ) ;
325
332
Object . defineProperty ( container , 'clientHeight' , {
333
+ configurable : true ,
326
334
get : ( ) => this . height
327
335
} ) ;
328
336
You can’t perform that action at this time.
0 commit comments