--
www.ymacs.com - AJAX code editor
I want it to take up the entire window, and if the window resizes, to
resize automagically.
This is closer:
var xml = new Ymacs_Buffer({ name: "index.html" });
var ymacs = window.ymacs = new Ymacs({ buffers: [xml] });
ymacs.setColorTheme([ "dark", "y" ]);
var e = document.getElementById('ed');
e.appendChild(ymacs.getElement());
ymacs.setSize({ x: "100%", y: "100%" })
but it appears it doesn't like "%"'s as it makes a 100x100 ymacs.
thanks,
-joe
2010/10/28 Mihai Călin Bazon <mihai...@gmail.com>:
var desktop = new DlDesktop({});Hope this helps.
desktop.fullScreen();
...
var ymacs = new Ymacs({ parent: desktop, buffers: [xml] });
var xml = new Ymacs_Buffer({ name: "index.html" });
xml.setCode("<div>hello world</div>")
var ymacs = window.ymacs = new Ymacs({ parent: desktop , fillParent:
true, buffers: [xml] });
ymacs.setColorTheme([ "dark", "y" ]);
the ymacs widget is just 1 line tall though. If I resize the window,
it resizes to take up the entire window which is what I'm looking for.
but it won't initialize that way.