Repository: kylin Updated Branches: refs/heads/master 3d83f164a -> 948553b9b
KYLIN-3042: In query results page, the results data table should resize when click fullScreen button Project: http://git-wip-us.apache.org/repos/asf/kylin/repo Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/948553b9 Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/948553b9 Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/948553b9 Branch: refs/heads/master Commit: 948553b9b8c65c720ccb986739988e216cfd26fc Parents: 3d83f16 Author: peng.jianhua <peng.jian...@zte.com.cn> Authored: Wed Nov 15 14:25:26 2017 +0800 Committer: chenzhx <c...@apache.org> Committed: Fri Nov 17 14:24:54 2017 +0800 ---------------------------------------------------------------------- webapp/app/js/directives/ui-grid.js | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kylin/blob/948553b9/webapp/app/js/directives/ui-grid.js ---------------------------------------------------------------------- diff --git a/webapp/app/js/directives/ui-grid.js b/webapp/app/js/directives/ui-grid.js index 352e919..369dec1 100644 --- a/webapp/app/js/directives/ui-grid.js +++ b/webapp/app/js/directives/ui-grid.js @@ -3375,6 +3375,16 @@ function uiGridDirective($compile, $templateCache, $timeout, $window, gridUtil, } grid.refreshCanvas(true); }); + + // If 'ui.fullscreen' is changed, we need to watch and react + $scope.$watch('$parent.ui.fullScreen', function (newValue, oldValue) { + if (newValue === oldValue) { + return; + } + grid.gridWidth = $scope.gridWidth = gridUtil.elementWidth($elm); + grid.gridHeight = $scope.gridHeight = gridUtil.elementHeight($elm); + grid.refreshCanvas(true); + }); } // Initialize the directive