diff --git a/editor/svg-editor.css b/editor/svg-editor.css index 69b01131..39968b2a 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -125,9 +125,6 @@ .tools_flyout { position: absolute; display: none; - height: 28px; - width: 90px; - background: red; cursor: pointer; float: left; } diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 5ff29c57..eeecc85c 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -15,7 +15,7 @@
-
+
diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 0df02caf..6a925849 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -127,6 +127,7 @@ $(document).ready(function(){ }); $('#fill_color').click(function(){ + $('.tools_flyout').hide(); var color = $(this).css('background-color'); if (color == 'transparent') color = '#ffffff'; picker.setColor(color); @@ -136,6 +137,7 @@ $(document).ready(function(){ }); $('#stroke_color').click(function(){ + $('.tools_flyout').hide(); var color = $(this).css('background-color'); if (color == 'transparent') color = '#ffffff'; picker.setColor(color);