Javascript-форум (https://javascript.ru/forum/)
-   Библиотеки/Тулкиты/Фреймворки (https://javascript.ru/forum/library-toolkit-framework/)
-   -   raphael.js - вставка в фигуру дочернего textarea (https://javascript.ru/forum/library-toolkit-framework/34101-raphael-js-vstavka-v-figuru-dochernego-textarea.html)

torsar 20.12.2012 14:40

raphael.js - вставка в фигуру дочернего textarea
 
var paper=Raphael(50,5,500,500);
selectedRect=paper.rect(0,0,100,100);
selectedRect.dblclick(doubleclick);

doubleclick=function()
									{
										var txtArea=window.document.createElement("textarea");
										txtArea.style.left=1;
										txtArea.style.top=1;
										//txtArea.style.width=100;
										//txtArea.style.height=100;
										txtArea.style.cols=10;
										txtArea.style.rows=10;
										txtArea.style.visibility=true;
										var node=this.node;					
										node.appendChild(txtArea);
										alert("");
									};


не наблюдаю в фигуре дочернего элемента textarea

torsar 20.12.2012 14:56

Цитата:

txtArea.style.cols=10;
txtArea.style.rows=10;
txtArea.cols=10;
txtArea.rows=10;


но не помогло


Часовой пояс GMT +3, время: 04:45.