html editor - ExtJS HTMLEditor toolbar gets disappeared after reaching specified height -
i using extjs htmleditor , set properties follows-
{ xtype: "htmleditor", width: 500, height: 250}
while entering text, after reaching specified height, toolbar gets disappeared. tried removing height , setting autoheight: true
in both cases html editor not fit window (htmleditor inside ext.form.formpanel
).
anyone having idea solve it.
this code
ext.onready(function() { ext.create('ext.window.window', { title: 'this title', resizable: false, modal: true, height: 300, width: 500, layout: 'fit', closeaction: 'hide', items: [ new ext.form.formpanel({ border: false, autoheight: true, items: [ { allowblank: false, xtype: "htmleditor", height: 250, width: 600, anchor:'100%'} ] }) ], buttons: [ {text: 'ok' }, {text: 'cancel'} ] }).show(); });
i have solved problem- added layout: 'fit'
formpanel
ext.onready(function() { ext.create('ext.window.window', { title: 'this title', resizable: false, modal: true, height: 300, width: 500, layout: 'fit', closeaction: 'hide', items: [ new ext.form.formpanel({ border: false, layout: 'fit', // fixed issue items: [ { allowblank: false, xtype: "htmleditor", height: 250, width: 600 } ] }) ], buttons: [ {text: 'ok' }, {text: 'cancel'} ] }).show(); });
Comments
Post a Comment