improve node title style control display
authorymh <ymh.work@gmail.com>
Wed, 11 Jan 2017 10:13:49 +0100
changeset 650 b2e22052e9d6
parent 649 2b9c120dba55
child 651 fd209e3af0c7
improve node title style control display
client/css/renkan.css
client/js/main.js
client/templates/nodeeditor.html
--- a/client/css/renkan.css	Tue Jan 10 17:36:30 2017 +0100
+++ b/client/css/renkan.css	Wed Jan 11 10:13:49 2017 +0100
@@ -523,6 +523,7 @@
 
 .Rk-Editor-p-title-style {
     width: 100%;
+    margin-bottom: 5px;
 }
 
 .Rk-Editor-p-title-style .Rk-Editor-Label {
@@ -531,6 +532,7 @@
 
 .Rk-Editor-p-title-style div {
     float: left;
+    clear: none;
 }
 
 .Rk-Editor-p-title-style .Rk-Editor-p-title-color {
--- a/client/js/main.js	Tue Jan 10 17:36:30 2017 +0100
+++ b/client/js/main.js	Wed Jan 11 10:13:49 2017 +0100
@@ -562,11 +562,11 @@
                 _selector.css({
                     'overflow-x': 'hidden',
                     'overflow-y': 'scroll',
-                    'max-height':(container_rect.bottom - 2 * _options.tooltip_padding - 10 - rect.top) + 'px'
+                    'max-height':(container_rect.bottom - 2 * _options.tooltip_padding - 5 - rect.top) + 'px'
                 });
             }
 
-            var _height = _selector.outerHeight() + 2 * _options.tooltip_padding,
+            var _height = _selector.outerHeight() + 2 * _options.tooltip_padding + 5,
                 _isLeft = (_coords.x < paper.view.center.x ? 1 : -1),
                 _left = _coords.x + _isLeft * (_xmargin + _options.tooltip_arrow_length),
                 _right = _coords.x + _isLeft * (_xmargin + _options.tooltip_arrow_length + _options.tooltip_width),
--- a/client/templates/nodeeditor.html	Tue Jan 10 17:36:30 2017 +0100
+++ b/client/templates/nodeeditor.html	Wed Jan 11 10:13:49 2017 +0100
@@ -11,7 +11,7 @@
     <% } %>
 </p>
 <% if (options.show_node_title_style) { %>
-    <div class="Rk-Editor-p-title-style">
+    <div class="Rk-Editor-p-title-style Rk-Editor-p">
         <div class="Rk-Editor-p-title-color">
             <span class="Rk-Editor-Label"><%-renkan.translate("Title color:")%></span>
             <span class="Rk-Edit-Color" style="background: <%-node.title_color%>;">