Repository: incubator-zeppelin Updated Branches: refs/heads/master 748533b2a -> b52c86c0d
ZEPPELIN-410 Autoscroll only in y axis Addresses https://issues.apache.org/jira/browse/ZEPPELIN-410 Autoscroll scrolls not only vertical, but also horizontal scrollbar. but horizontal scrollbar should not be touched from it. Author: Lee moon soo <[email protected]> Closes #419 from Leemoonsoo/ZEPPELIN-410 and squashes the following commits: 214de49 [Lee moon soo] Autoscroll only in y axis Project: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/commit/b52c86c0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/tree/b52c86c0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/diff/b52c86c0 Branch: refs/heads/master Commit: b52c86c0dc0d7edda48060f4a738a6229b4c8ac7 Parents: 748533b Author: Lee moon soo <[email protected]> Authored: Wed Nov 11 08:29:54 2015 +0900 Committer: Lee moon soo <[email protected]> Committed: Thu Nov 12 15:36:02 2015 +0900 ---------------------------------------------------------------------- zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-zeppelin/blob/b52c86c0/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js ---------------------------------------------------------------------- diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js index e9de91c..d90f710 100644 --- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js +++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js @@ -673,7 +673,7 @@ angular.module('zeppelinWebApp') scrollTargetPos = documentHeight; } } - angular.element('body').scrollTo(scrollTargetPos, {duration:200}); + angular.element('body').scrollTo(scrollTargetPos, {axis: 'y', interrupt: true, duration:200}); }; var setEditorHeight = function(id, height) {
