Check in draft source button
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@316 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
5e15483254
commit
b73ed5afc8
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
|
@ -302,7 +302,7 @@ div.color_block {
|
|||
position: relative;
|
||||
width: 95%;
|
||||
top: 35px;
|
||||
height: 90%;
|
||||
height: 250px;
|
||||
padding: 5px;
|
||||
font-size: 12px;
|
||||
}
|
|
@ -410,10 +410,8 @@ function svg_edit_setup() {
|
|||
svgCanvas.redo();
|
||||
};
|
||||
|
||||
// TODO: properly size the text area during resize
|
||||
// TODO: properly handle error conditions (error msg dialog)
|
||||
// TODO: prevent @style showing up on the svg element
|
||||
// TODO: create new button for Source Editor
|
||||
// TODO: prevent creating an undo-able event if the source has not changed - how? -->
|
||||
var showSourceEditor = function(){
|
||||
if (editingsource) return;
|
||||
editingsource = true;
|
||||
|
@ -426,8 +424,8 @@ function svg_edit_setup() {
|
|||
|
||||
var properlySourceSizeTextArea = function(){
|
||||
// TODO: remove magic numbers here
|
||||
var height = ($(window).height() - 115)/(12*1.5);
|
||||
$('#svg_source_textarea').attr('rows', height);
|
||||
var height = ($(window).height() - 120)+'px';
|
||||
$('#svg_source_textarea').css('height', height);
|
||||
};
|
||||
|
||||
var hideSourceEditor = function(){
|
||||
|
|
Loading…
Reference in New Issue