Fix Issue 5: flyout menus collapse when color picker activated
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@32 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
411f6d7aec
commit
6799707fc7
|
@ -125,9 +125,6 @@
|
|||
.tools_flyout {
|
||||
position: absolute;
|
||||
display: none;
|
||||
height: 28px;
|
||||
width: 90px;
|
||||
background: red;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
<div id="svg_editor">
|
||||
|
||||
<div id="color_pick">
|
||||
<div id="color_pick" class="tools_flyout">
|
||||
<div id="color_pick_wheel"></div>
|
||||
<input type="text" id="color_pick_text" />
|
||||
<input type="button" id="color_pick_ok" value="OK" />
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue