I can't seem to get this to have any effect; the fonts come out completely
different (size and weight) than what TextArea has. Here's my code:

var iframe_decorator = text.getDecorator();
iframe.addListenerOnce(
  "load",
  function(e) {
    var body = iframe.getBody();
    body.innerHTML = html_text;
    if (iframe_decorator) {
      // Cribbed from qx.ui.form.AbstractField:
      // Disable spellcheck in gecko
     var el = iframe.getContentElement();
     if (qx.core.Variant.isSet("qx.client", "gecko"))
       el.setAttribute("spellcheck", "false");
     el.setStyles({
       "border": "none",
       "padding": 0,
       "margin": 0,
       "display": "block",
       "background": "transparent",
       "outline": "none",
       "appearance": "none",
       "autoComplete": "off"
     });

     // Apply the decorator from the text area
     iframe.setDecorator(iframe_decorator);
}});


Fabian Jakobs wrote:
> 
> [...]
> 
> iframe.setDecorator("input");
> 

-- 
View this message in context: 
http://www.nabble.com/Copying-widget-CSS-style-to-embedded-iframe-DOM-node-tp25862550p25874741.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to