1. #1
    Ext User
    Join Date
    Jul 2010
    Posts
    17
    Vote Rating
    0
    cabennett85 is on a distinguished road

      0  

    Question renderTo not rendering components to div when present

    renderTo not rendering components to div when present


    After creating an element via the DomHelper or by hard coding it in the body, I am rendering panels into that div.
    The problem is that I am not able to add items to the constructor (app.ui.GameSlidePanelContent) when the renderTo config is present.
    Removing renderTo causes the items to appear. Any thoughts as to when renderTo is behaving in this manner?

    Code:
    var dh = Ext.DomHelper;
    var gamePanel = dh.insertAfter('scroller', {
        tag: 'div', 
        id: 'gamePanel',
        cls: 'game_panel_closed'
    });
    
    
    
    app.ui.GameSlidePanelContent = Ext.extend(Ext.Panel, {
        cls: 'gameContent',
        renderTo: 'gamePanel',
        items: [{html: 'foo'}]
        ...

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,789
    Vote Rating
    597
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Don't put items in the prototype. It means they get shared across every object instance.

    If you say that you'll only ever use it once, why are you creating a new class?!?!
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Similar Threads

  1. How to get Components' div id
    By BlueSkye in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 26 May 2010, 2:45 PM
  2. panel display outside the div in whici it's renderTo
    By floflo in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 15 Jan 2010, 12:32 PM
  3. Center FormPanel + RenderTo DIV
    By MohamedSaeed in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 1 Sep 2008, 3:44 PM
  4. Strange behaviour while rendering ext components inside scrollable div
    By albert.sole in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 24 Jul 2008, 12:56 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."