File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
zeppelin-web/src/app/notebook/paragraph Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -981,13 +981,16 @@ angular.module('zeppelinWebApp')
981981 return angular . element ( '#p' + $scope . paragraph . id + '_table' ) ;
982982 }
983983 } ) ;
984+ angular . element ( '#p' + $scope . paragraph . id + '_table .table' ) . on ( 'remove' , function ( ) {
985+ angular . element ( '#p' + $scope . paragraph . id + '_table .table' ) . floatThead ( 'destroy' ) ;
986+ } ) ;
984987
985988 angular . element ( '#p' + $scope . paragraph . id + '_table' ) . css ( 'position' , 'relative' ) ;
986989 angular . element ( '#p' + $scope . paragraph . id + '_table' ) . css ( 'height' , '100%' ) ;
987990 angular . element ( '#p' + $scope . paragraph . id + '_table' ) . perfectScrollbar ( 'destroy' ) ;
988991 angular . element ( '#p' + $scope . paragraph . id + '_table' ) . perfectScrollbar ( ) ;
989992 angular . element ( '.ps-scrollbar-y-rail' ) . css ( 'z-index' , '1002' ) ;
990-
993+
991994 // set table height
992995 var psHeight = $scope . paragraph . config . graph . height ;
993996 angular . element ( '#p' + $scope . paragraph . id + '_table' ) . css ( 'height' , psHeight ) ;
You can’t perform that action at this time.
0 commit comments