Skip to content

Commit 19621bf

Browse files
committed
bug fix - Floating Thead corrected the problem does not go away.
1 parent 350683e commit 19621bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)