Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext User
    Join Date
    Feb 2008
    Posts
    1
    Vote Rating
    0
    jcooper is on a distinguished road

      0  

    Default [2.0.1][CLOSED] AnchorLayout calls setSize on Button (w/patch)

    [2.0.1][CLOSED] AnchorLayout calls setSize on Button (w/patch)


    Hi,

    First off, I love the library. Great work.

    I'm using GWT-EXT (v2.0.1 of both). I ran into an issue yesterday when laying out a form.

    Here's the GWT-EXT code. The Java code wraps Ext directly I think, so hopefully this is readable enough for our purposes here:

    Code:
        
    Button filterButton = new Button("Filter", new ButtonListenerAdapter() {
        public void onClick(Button b, EventObject obj) {
            renderGrid();
        }
    });
    
    TextField recipField = new TextField("Recipient Email", "recipEmail", 210);
    
     FormPanel form = new FormPanel();
     form.setWidth(580);
     form.setTitle("Recipient Status");
     form.setFrame(true);
    
     MultiFieldPanel recipPanel = new MultiFieldPanel();
     recipPanel.addToRow(recipField, 335);
     recipPanel.addToRow(filterButton, new ColumnLayoutData(1));
     form.add(recipPanel);


    On both MSIE 7 and Firefox 2 on Windows I got the same Javascript error. I tracked it down to AnchorLayout.onLayout()

    Button doesn't have a setSize() method on it, but when included in a MultiFieldPanel, AnchorLayout tries to call setSize() on it. I added one line to detect for button:

    Code:
        /* ext-all-debug.js: lines 14271-14274 */
        if(cw || ch){
                /* I added this if statement */
                if (c.type != 'button')
                        c.setSize(cw || undefined, ch || undefined);
        }
    That fixed the issue for me.

    Any chance of getting this patch, or a similar one, into the next EXT release?

    thanks

    -- James

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    A Button is not a BoxComponent and therefore can't be added directly into a layout that sets diemnsions (e.g. fit, anchor or border layout). All those layouts require a BoxComponent.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  3. #3
    Ext JS Premium Member nateirwin's Avatar
    Join Date
    Oct 2007
    Location
    Denver, Colorado, USA
    Posts
    69
    Vote Rating
    0
    nateirwin is on a distinguished road

      0  

    Default Okay

    Okay


    Thanks, this helped.

Thread Participants: 2