Skip to content

Commit dbd5b34

Browse files
try 2
1 parent ca1ea2e commit dbd5b34

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,7 @@ function ResultCtrl($scope, $rootScope, $route, $window, $routeParams, $location
263263
renderApp(app);
264264
} else {
265265
if (type === 'TABLE') {
266-
$timeout(function() {
267-
$scope.renderGraph($scope.graphMode, refresh);
268-
}, 10);
266+
$scope.renderGraph($scope.graphMode, refresh);
269267
} else if (type === 'HTML') {
270268
renderHtml();
271269
} else if (type === 'ANGULAR') {

zeppelin-web/src/app/notebook/paragraph/result/result.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
&& config.graph.optionOpen && !asIframe && !viewOnly">
2929
<div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
3030
id="trsetting{{id}}_{{viz.id}}"
31-
ng-show="graphMode == viz.id"></div>
31+
ng-if="graphMode == viz.id"></div>
3232
<div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
3333
id="vizsetting{{id}}_{{viz.id}}"
34-
ng-show="graphMode == viz.id"></div>
34+
ng-if="graphMode == viz.id"></div>
3535
</div>
3636

3737
<!-- graph -->
@@ -41,7 +41,7 @@
4141
>
4242
<div ng-repeat="viz in builtInTableDataVisualizationList track by $index"
4343
id="p{{id}}_{{viz.id}}"
44-
ng-show="graphMode == viz.id">
44+
ng-if="graphMode == viz.id">
4545
</div>
4646
</div>
4747

0 commit comments

Comments
 (0)