From 9d33b442ebaaea1c9979d01cfbdc8b5333fe0fbf Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 9 Nov 2015 10:35:57 -0600 Subject: [PATCH] [welcome] prevent scrolling in the welcome editor --- public/src/directives/senseHelpExample.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/directives/senseHelpExample.js b/public/src/directives/senseHelpExample.js index 7666256f4ac305..06c340fb536a16 100644 --- a/public/src/directives/senseHelpExample.js +++ b/public/src/directives/senseHelpExample.js @@ -1,5 +1,5 @@ const SenseEditor = require('../sense_editor/editor'); -const exampleText = require('raw!./helpExample.txt'); +const exampleText = require('raw!./helpExample.txt').trim(); require('ui/modules') .get('app/sense') @@ -10,6 +10,7 @@ require('ui/modules') $el.text(exampleText); $scope.editor = new SenseEditor($el); $scope.editor.setReadOnly(true); + $scope.editor.$blockScrolling = Infinity; $scope.$on('$destroy', function () { if ($scope.editor) $scope.editor.destroy();