DOJO Movable Editor is not resizing until dragged -


i have dojo editor movable

<div id="dnd" dojotype="dojo.dnd.moveable">         <div data-dojo-type="dijit/editor" height="120px" width="250px"             id="editor3"             data-dojo-props="plugins:['bold','italic']">             <p>this instance created customized toolbar/ plugins</p>         </div>     </div> 

i know :
1- why changing width attribute not make difference in editor's width
2- why editor resizes when dragged first time(to appropiate height)

i use dojo 1.9.1

use style attribute on div , not height , width , dojo honor that.

<div id="editor3"     data-dojo-type="dijit/editor" style="width:250px;"     data-dojo-props="plugins:['bold','italic'], height: '120px'">         <p>this instance created customized toolbar/ plugins</p> </div> 

the height auto-determined (be small possible , expand required), there minheight property , height property (shown above) can assign in data-dojo-props if require height control


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -