Disable horizontal scroll bar in GWT-RichTextArea in IE -


how can disable horizontal scroll bar in gwt-richtextarea

i applied overflow-x:hidden , working fine on firefox not working on ie

richtextarea uses iframe embed editable html document.

when set styles rich area, setting them iframe element, in case have set styles body element of iframe #document.

the problem here how content document of iframe, have use jsni, or use 3party library gwt-query.

this works qquery:

  import static com.google.gwt.query.client.gquery.*;      richtextarea area = new richtextarea();     rootpanel.get().add(area);      $(area).contents().find("body").css($$("overflow-x: hidden")); 

another issue creation of editable document in iframe delayed in gwt. safer if delay setting of styles, using timer.

with gquery can use delay() method

  $(area).delay(100,      lazy().contents().find("body").css($$("overflow-x: hidden")).done()   ); 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -