GZGQ.COM
welcome to my space
X
Search:  
 HOME   [SOLVED]adding FormPanel with htmleditor to card layout
[SOLVED]adding FormPanel with htmleditor to card layout
Published by: mike 2009-01-08
Welcome to:gzgq.com

  • 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=94912
    HOME
    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.html
    HOME
    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

    You are looking at:gzgq.com's [SOLVED]adding FormPanel with htmleditor to card layout, click gzgq.com to home
  • the five feng shui elements and their characteristics
  • 10 things you can do to protect your photographs from infringement
  • ways to earn extra cash in order to enter online sweepstakes for money
  • understanding astrological predictions
  • silas playing second fiddle to paul
  • tournament blackjack and the art of sabotage
  • art of the recording engineer from michael jackson to mutant radio matt forger
  • what sets chinese painting apart from western painting
  • the revolution of electric guitars
  • laughing toward truth six tips for lighthearted thinkers
  • the mysterious powerful element of a picture that sells
  • roulette the game of remarkable comebacks
  • at 60 plus amitabh bachchan rules a vastu study
  •  
  • acting auditions the path to mastery
  • playing online poker for a living
  • the work from home fashion primer
  • elephants in the sky and four poems
  • my introduction to northwest coast native american art
  • five steps to protecting your music and your money
  • texas holdem tournament strategy poker tournament betting basics
  • the international dance festival in monaco december 2004
  • autcity of eskimo inuit art native indian art
  • tunnel of stone
  • art history taking you to a whole new world of appreciation
  • inuit eskimo art as investments
  • export import of inuit eskimo art sculpture containing whalebone or ivory
  • diary of a mad black woman doesnt disappoint unfortunately thats the problem
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 gzgq.com        Site made:CFZ