Check in draft source button

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@316 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-07-13 03:46:27 +00:00
parent 5e15483254
commit b73ed5afc8
3 changed files with 4 additions and 6 deletions

BIN
editor/images/source.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -302,7 +302,7 @@ div.color_block {
position: relative; position: relative;
width: 95%; width: 95%;
top: 35px; top: 35px;
height: 90%; height: 250px;
padding: 5px; padding: 5px;
font-size: 12px; font-size: 12px;
} }

View File

@ -410,10 +410,8 @@ function svg_edit_setup() {
svgCanvas.redo(); 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: create new button for Source Editor
// TODO: prevent creating an undo-able event if the source has not changed - how? -->
var showSourceEditor = function(){ var showSourceEditor = function(){
if (editingsource) return; if (editingsource) return;
editingsource = true; editingsource = true;
@ -426,8 +424,8 @@ function svg_edit_setup() {
var properlySourceSizeTextArea = function(){ var properlySourceSizeTextArea = function(){
// TODO: remove magic numbers here // TODO: remove magic numbers here
var height = ($(window).height() - 115)/(12*1.5); var height = ($(window).height() - 120)+'px';
$('#svg_source_textarea').attr('rows', height); $('#svg_source_textarea').css('height', height);
}; };
var hideSourceEditor = function(){ var hideSourceEditor = function(){