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
This commit is contained in:
@@ -484,6 +484,7 @@ svgEditor.addExtension("Markers", function(S) {
|
|||||||
panel: "marker_panel",
|
panel: "marker_panel",
|
||||||
title: getTitle('en','start_marker_list'),
|
title: getTitle('en','start_marker_list'),
|
||||||
id: "start_marker_list",
|
id: "start_marker_list",
|
||||||
|
colnum: 3,
|
||||||
events: { change: setArrowFromButton }
|
events: { change: setArrowFromButton }
|
||||||
},{
|
},{
|
||||||
type: "input",
|
type: "input",
|
||||||
@@ -499,6 +500,7 @@ svgEditor.addExtension("Markers", function(S) {
|
|||||||
panel: "marker_panel",
|
panel: "marker_panel",
|
||||||
title: getTitle('en','mid_marker_list'),
|
title: getTitle('en','mid_marker_list'),
|
||||||
id: "mid_marker_list",
|
id: "mid_marker_list",
|
||||||
|
colnum: 3,
|
||||||
events: { change: setArrowFromButton }
|
events: { change: setArrowFromButton }
|
||||||
},{
|
},{
|
||||||
type: "input",
|
type: "input",
|
||||||
@@ -513,6 +515,7 @@ svgEditor.addExtension("Markers", function(S) {
|
|||||||
panel: "marker_panel",
|
panel: "marker_panel",
|
||||||
title: getTitle('en','end_marker_list'),
|
title: getTitle('en','end_marker_list'),
|
||||||
id: "end_marker_list",
|
id: "end_marker_list",
|
||||||
|
colnum: 3,
|
||||||
events: { change: setArrowFromButton }
|
events: { change: setArrowFromButton }
|
||||||
} ],
|
} ],
|
||||||
callback: function() {
|
callback: function() {
|
||||||
|
|||||||
@@ -811,12 +811,22 @@ span.zoom_tool {
|
|||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#option_lists #position_opts {
|
#option_lists .optcols2 {
|
||||||
width: 90px;
|
width: 70px;
|
||||||
margin-left: -32px;
|
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;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
<li class="tool_button" id="linecap_round" title="Linecap: Round"></li>
|
||||||
</ul>
|
</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_posleft" title="Align Left"></li>
|
||||||
<li class="push_button" id="tool_poscenter" title="Align Center"></li>
|
<li class="push_button" id="tool_poscenter" title="Align Center"></li>
|
||||||
<li class="push_button" id="tool_posright" title="Align Right"></li>
|
<li class="push_button" id="tool_posright" title="Align Right"></li>
|
||||||
|
|||||||
@@ -821,6 +821,10 @@
|
|||||||
|
|
||||||
var list = $('<ul id="' + tool.id + '_opts"></ul>').appendTo('#option_lists');
|
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
|
// Creates the tool, hides & adds it, returns the select element
|
||||||
var dropdown = $(html).appendTo(panel).children();
|
var dropdown = $(html).appendTo(panel).children();
|
||||||
|
|
||||||
|
|||||||
@@ -4424,7 +4424,7 @@ function BatchCommand(text) {
|
|||||||
|
|
||||||
var grip = $('#pathpointgrip_'+index);
|
var grip = $('#pathpointgrip_'+index);
|
||||||
grip.dblclick(function() {
|
grip.dblclick(function() {
|
||||||
path.setSegType();
|
if(path) path.setSegType();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if(x && y) {
|
if(x && y) {
|
||||||
|
|||||||
Reference in New Issue
Block a user