Repository: brooklyn-ui Updated Branches: refs/heads/master 6e0273975 -> 7bd22baad
fix codemirror scroll issue make the editor take up the full height of screen, then scroll in the editor. trying to get it to scroll nicely globally but just could not make it work. Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/4896aa10 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/4896aa10 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/4896aa10 Branch: refs/heads/master Commit: 4896aa1085afc7b2c72ef73079e4d73258b5574e Parents: 6e02739 Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Authored: Tue Mar 1 15:35:54 2016 +0000 Committer: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Committed: Tue Mar 1 15:35:54 2016 +0000 ---------------------------------------------------------------------- src/main/webapp/assets/css/codemirror-brooklyn.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/4896aa10/src/main/webapp/assets/css/codemirror-brooklyn.css ---------------------------------------------------------------------- diff --git a/src/main/webapp/assets/css/codemirror-brooklyn.css b/src/main/webapp/assets/css/codemirror-brooklyn.css index e751df3..f2662bd 100644 --- a/src/main/webapp/assets/css/codemirror-brooklyn.css +++ b/src/main/webapp/assets/css/codemirror-brooklyn.css @@ -19,11 +19,15 @@ /* overrides for brooklyn */ +.composer-editor { + height: calc(100vh - 290px); +} + .CodeMirror { height: auto; } .CodeMirror-scroll { - min-height: 480px; + min-height: calc(100vh - 285px); } .CodeMirror .CodeMirror-gutter.CodeMirror-linenumbers { }