1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    40
    Vote Rating
    0
    kramal is an unknown quantity at this point

      0  

    Default I cant do it .Ext.panel.Panel is hidden

    I cant do it .Ext.panel.Panel is hidden


    Hi All!!

    First I would to beg your pardon for my English. If you will not understand something, you may write to me. Here my e-mail kramal888@gmail.com. .Thanks for the future!


    And after all here below my question. I am developing one application. Now I have not finished it.
    When i change renderTo:Ext.getBody() it is OK! But if i change renderTo:'panel' about 20% of the application is hidden! What is problem i dont know.

    I give you screenshots to understand it best and files in zip
    I will grateful for any suggestion because I am new in ExtJS!
    Screenshot.jpg


    and its cause code
    Screenshot-2.png
    Attached Images

  2. #2
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    912
    Vote Rating
    42
    westy is a jewel in the rough westy is a jewel in the rough westy is a jewel in the rough

      0  

    Default


    Hi,

    Do you have something in your html with the id of 'panel'?
    RenderTo is normally used to target Ext.getBody() as you have done, it's use is less common now days. Components are generally added to a container, and Ext sorts it all out.

    What I'd expect to see is your created panel added to a viewport.

    So something like:
    Code:
    var myPanel = Ext.create('Ext.panel.Panel', {
        //...
    });
    
    Ext.create('Ext.container.Viewport', {
        items: [myPanel]
    });
    Hope this helps!

    Westy
    Product Architect
    Altus Ltd.

  3. #3
    Sencha User
    Join Date
    Dec 2012
    Posts
    40
    Vote Rating
    0
    kramal is an unknown quantity at this point

      0  

    Default


    Thank you westy!

Thread Participants: 1