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-75d572ba1ddd
master
Jeff Schiller 2009-06-05 00:15:17 +00:00
parent 411f6d7aec
commit 6799707fc7
3 changed files with 3 additions and 4 deletions

View File

@ -125,9 +125,6 @@
.tools_flyout { .tools_flyout {
position: absolute; position: absolute;
display: none; display: none;
height: 28px;
width: 90px;
background: red;
cursor: pointer; cursor: pointer;
float: left; float: left;
} }

View File

@ -15,7 +15,7 @@
<div id="svg_editor"> <div id="svg_editor">
<div id="color_pick"> <div id="color_pick" class="tools_flyout">
<div id="color_pick_wheel"></div> <div id="color_pick_wheel"></div>
<input type="text" id="color_pick_text" /> <input type="text" id="color_pick_text" />
<input type="button" id="color_pick_ok" value="OK" /> <input type="button" id="color_pick_ok" value="OK" />

View File

@ -127,6 +127,7 @@ $(document).ready(function(){
}); });
$('#fill_color').click(function(){ $('#fill_color').click(function(){
$('.tools_flyout').hide();
var color = $(this).css('background-color'); var color = $(this).css('background-color');
if (color == 'transparent') color = '#ffffff'; if (color == 'transparent') color = '#ffffff';
picker.setColor(color); picker.setColor(color);
@ -136,6 +137,7 @@ $(document).ready(function(){
}); });
$('#stroke_color').click(function(){ $('#stroke_color').click(function(){
$('.tools_flyout').hide();
var color = $(this).css('background-color'); var color = $(this).css('background-color');
if (color == 'transparent') color = '#ffffff'; if (color == 'transparent') color = '#ffffff';
picker.setColor(color); picker.setColor(color);