Added option to set column count on dropdown lists, set marker columns to be 3 wide, fixed bug occuring on open path creation

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1588 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-06-03 13:05:48 +00:00
parent e412e6078d
commit cfa2e640db
5 changed files with 23 additions and 6 deletions

View File

@ -484,6 +484,7 @@ svgEditor.addExtension("Markers", function(S) {
panel: "marker_panel",
title: getTitle('en','start_marker_list'),
id: "start_marker_list",
colnum: 3,
events: { change: setArrowFromButton }
},{
type: "input",
@ -499,6 +500,7 @@ svgEditor.addExtension("Markers", function(S) {
panel: "marker_panel",
title: getTitle('en','mid_marker_list'),
id: "mid_marker_list",
colnum: 3,
events: { change: setArrowFromButton }
},{
type: "input",
@ -513,6 +515,7 @@ svgEditor.addExtension("Markers", function(S) {
panel: "marker_panel",
title: getTitle('en','end_marker_list'),
id: "end_marker_list",
colnum: 3,
events: { change: setArrowFromButton }
} ],
callback: function() {

View File

@ -811,12 +811,22 @@ span.zoom_tool {
padding-left: 0;
}
#option_lists #position_opts {
width: 90px;
margin-left: -32px;
#option_lists .optcols2 {
width: 70px;
margin-left: -15px;
}
#option_lists #position_opts li {
#option_lists .optcols3 {
width: 90px;
margin-left: -31px;
}
#option_lists .optcols4 {
width: 130px;
margin-left: -44px;
}
#option_lists ul[class^=optcols] li {
float: left;
}

View File

@ -521,7 +521,7 @@ script type="text/javascript" src="locale/locale.min.js"></script-->
<li class="tool_button" id="linecap_round" title="Linecap: Round"></li>
</ul>
<ul id="position_opts">
<ul id="position_opts" class="optcols3">
<li class="push_button" id="tool_posleft" title="Align Left"></li>
<li class="push_button" id="tool_poscenter" title="Align Center"></li>
<li class="push_button" id="tool_posright" title="Align Right"></li>

View File

@ -821,6 +821,10 @@
var list = $('<ul id="' + tool.id + '_opts"></ul>').appendTo('#option_lists');
if(tool.colnum) {
list.addClass('optcols' + tool.colnum);
}
// Creates the tool, hides & adds it, returns the select element
var dropdown = $(html).appendTo(panel).children();

View File

@ -4424,7 +4424,7 @@ function BatchCommand(text) {
var grip = $('#pathpointgrip_'+index);
grip.dblclick(function() {
path.setSegType();
if(path) path.setSegType();
});
}
if(x && y) {