the attached file works great when the FormPanel being added doesn't contain an htmleditor:
var newForm = new Ext.FormPanel({
anchor :'100% 100%', // anchor width by percentage
labelWidth : 75,
defaultType : 'textfield',
items : [{
fieldLabel : 'Send To',
name : 'to',
anchor : '100%' // anchor width by percentage
},{
fieldLabel : 'Subject',
name : 'subject',
anchor : '100%' // anchor width by percentage
}, {
xtype : 'textarea',
hideLabel : true,
name : 'msg', FormPanel with TabPanel and multiple HTMLEditors - Ext JS Forums:: Anyone else have any problems similar to the above and solved it differently? .. activate the tab/card that is holding it (the htmleditor's container). http://extjs.com/forum/showthread.php?p=94912HOME | Java Swing | O'Reilly Media:: As with a CardLayout -managed container, you quite often add a container as DebugHTMLEditorKit.java // A simple extension of the HTMLEditor kit that http://oreilly.com/catalog/9780596004088/toc.htmlHOME |
anchor : '100% -53' // anchor width by percentage and height by raw adjustment
}]
})
When I change the third element in the FormPanel to the htmleditor, it doesn't render / size correctly. Can anyone see the problem?
Thanks,
Joshua
Hrm... Are you using 2.1? I ran this locally on a 2.1 build and everything worked as expected.
Ok, I see that. This is the code I was running in Firebug to add the newForm to the CardViewPort class.
viewport.updatePanel(2,newForm)
I tried a call to
viewport.doLayout()
but that didn't sort out the rendering of the htmlEditor and it just looks like the attached image. Looking at it in Firebug and it seems like half the buttons don't even get created. I'm also not sure why the text area of the editor appears hidden.
Thanks for having a look at this.
Ha! I was using 2.0 build and when I tried it on the 2.1 build it works fine as you have confirmed.
Thanks for the help
Joshua
Joshua -
Are you missing any code in your attached file? It seems that newForm is never added to your custom CardViewPort class. The functions addPanel and updatePanel are never run.
Traditional University or MLM University? You Choose
15 Questions to Ask Your Software Vendor
|