Skip to content

Commit

Permalink
Try adding code editor to slideout, needs to be sorted still
Browse files Browse the repository at this point in the history
  • Loading branch information
gashcrumb committed May 2, 2013
1 parent 28b5a88 commit 29d3be1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hawtio-web/src/main/webapp/app/ui/html/test.html
Expand Up @@ -85,9 +85,8 @@

<div hawtio-slideout="showSlideoutLeft" direction="left" title="I like pastry">
<div class="dialog-body">
<div>
Here is some content for the left or whatever {{transcludedValue}}
</div>
<div>Bollocks</div>
<div hawtio-editor="someText" mode="javascript"></div>
</div>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions hawtio-web/src/main/webapp/app/ui/js/editorDirective.ts
Expand Up @@ -54,6 +54,11 @@ module UI {
$scope.text = $scope.doc.getValue();
$scope.$apply();
});

setTimeout(function() {
$scope.codeEditor.refresh();
}, 10);

}
});

Expand Down

0 comments on commit 29d3be1

Please sign in to comment.