Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request elastic#78 from spalger/fix/welcomeScreenEditor
Browse files Browse the repository at this point in the history
[welcome] prevent scrolling in the welcome editor
  • Loading branch information
bleskes committed Nov 10, 2015
2 parents b963308 + 9d33b44 commit d1e500b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/src/directives/senseHelpExample.js
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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();
Expand Down

0 comments on commit d1e500b

Please sign in to comment.