diff --git a/editor/images/source.png b/editor/images/source.png new file mode 100644 index 00000000..31279147 Binary files /dev/null and b/editor/images/source.png differ diff --git a/editor/svg-editor.css b/editor/svg-editor.css index 45a932a1..64bff8e5 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -302,7 +302,7 @@ div.color_block { position: relative; width: 95%; top: 35px; - height: 90%; + height: 250px; padding: 5px; font-size: 12px; } \ No newline at end of file diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 1dfd2753..04fa43f7 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -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(){