File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -424,18 +424,22 @@ PivotView.prototype.recalculateSizes = function (container) {
424424 tableBlock = container . getElementsByClassName ( "lpt-tableBlock" ) [ 0 ] ,
425425 tableTr = tableBlock . getElementsByTagName ( "tr" ) [ 0 ] ,
426426 headerW = leftHeader . offsetWidth ,
427- headerH = topHeader . offsetHeight ;
427+ headerH = topHeader . offsetHeight ,
428+ tableBlockParent ;
428429
429430 headerContainer . style . width = headerW + "px" ;
430431 topHeader . style . marginLeft = headerW + "px" ;
431432 tableBlock . style . marginLeft = headerW + "px" ;
432433 leftHeader . style . height = container . offsetHeight - headerH + "px" ;
433434 tableBlock . style . height = container . offsetHeight - headerH + "px" ;
434435
436+ tableBlockParent = tableBlock . parentNode ;
437+ tableBlockParent . removeChild ( tableBlock ) ;
435438 for ( var i in tableTr . childNodes ) {
436439 if ( tableTr . childNodes [ i ] . tagName !== "TD" ) continue ;
437440 tableTr . childNodes [ i ] . style . width = topTableTr . childNodes [ i ] . offsetWidth + "px" ;
438441 }
442+ tableBlockParent . appendChild ( tableBlock ) ;
439443
440444 } catch ( e ) {
441445 console . error ( "Error when fixing sizes. Please, contact the developer." , "ERROR:" , e ) ;
You can’t perform that action at this time.
0 commit comments