better placement of the comment tutorial
authorJan Szejko <janek37@gmail.com>
Thu, 30 Mar 2017 11:30:31 +0000 (13:30 +0200)
committerJan Szejko <janek37@gmail.com>
Thu, 30 Mar 2017 11:30:31 +0000 (13:30 +0200)
src/editor/modules/documentCanvas/canvas/gutter.js

index 73a46e0..00b118e 100644 (file)
@@ -20,8 +20,8 @@ var GutterView = function(gutter, tutorial) {
     }, this);
     this.dom = $('<div class="gutter"></div>');
     var tutorialHolder = $('<div/>').attr('data-toggle', 'tutorial').attr('data-tutorial', tutorial.index)
-        .attr('data-placement', 'bottom').attr('data-content', tutorial.text);
-    this.dom.append(tutorialHolder);
+        .attr('data-placement', 'left').attr('data-content', tutorial.text).css('height', '200px');
+    this.dom.append($('<div>/').css('height', '0').append(tutorialHolder));
 };