Results 1 to 3 of 3

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

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    45
    Vote Rating
    0
      0  

    Default 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 Attached Images

  2. #2
    Ext JS Premium Member westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,019
    Vote Rating
    106
      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
    45
    Vote Rating
    0
      0  

    Default

    Thank you westy!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •