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. #11
    Ext User
    Join Date
    Apr 2007
    Posts
    18
    Vote Rating
    0
    tarsolya is on a distinguished road

      0  

    Default


    When you use the split bar handles to resize the layout, that's not a 'layout' event, but a ContentPanel's or a Region's resized / resize (I don't know why the one letter difference).

    Since I have no horizontal split bars in my layout, I didn't notice this. Try to attach autoSizeColumns() on one of those and see how it turns out.

  2. #12
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    'layout' Is the correct event but not fires when I want.

    Code:
    view.autoSizeColumns.defer(100);
    Not solved the problem for me.

    Any ideas?

  3. #13
    Ext User
    Join Date
    Apr 2007
    Posts
    18
    Vote Rating
    0
    tarsolya is on a distinguished road

      0  

    Default


    What do you mean by not firing when you want?

    The 'layout' will fire when a layout redraw happens, I guess. Since the grid columns can only loose their fitting on window or panel resize, you doesn't have too much other possibilities to resize them, but on this event, since panel's resize events doesn't monitor window changes.

  4. #14
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Sorry my English is bad.

    'layout' event OK. But the problem continues for me. The grid not autoSizeColumns when I want (After 'layout' event) and defer not works for me.

    Can you post your code (Only the autoSize lines).

    Thanks in advance,

  5. #15
    Ext User
    Join Date
    Apr 2007
    Posts
    18
    Vote Rating
    0
    tarsolya is on a distinguished road

      0  

    Default


    I see. Here's the code, it's very simple:

    [CODE]
    init: function() {
    innerLayout = new Ext.BorderLayout( 'product-grid', {
    center: { split: true, collapsible: false, titlebar: false, tabPosition: 'top', alwaysShowTabs: true, closeOnTab: true, hideWhenEmpty: true },
    east: { initialSize: 250, split: true, collapsible: true, titlebar: true, hideWhenEmpty: true }
    });

    // load the grid
    this.loadGrid();

    // add grid and preview pane into inner layout
    g_panel = new Ext.GridPanel( pg, { autoCreate: true, fitToFrame: true, title: 'B

  6. #16
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Sorry for my bad English.

    I have this application model:

    http://extjs.com/forum/attachment.ph...4&d=1176397306

    The principal layout with head and left menu and each content load into a tab (iframe).

    Whe I expand/collapse the left menu panel my grid not autosizecolumns correctly.

    Provisionally I put autosizeColumns in grid "click" event and works fine.

    I a tab (iframe) that loads grid, I put this code:

    Code:
    window.parent.layout.addListener('layout', pp)
    layout is the global variable of principal layout and pp is your function. The event fires OK, but grid not autosizeColumns correctly. Why? When collapse left menu the autosize not works correctly, but when expand left panel the size of columns has a extra width (should be a size of collapse state), posible defer problem??

  7. #17
    Ext User
    Join Date
    Apr 2007
    Posts
    18
    Vote Rating
    0
    tarsolya is on a distinguished road

      0  

    Default


    You tried to attach the autoSizeColumns() to the left (west?) region's proper events?

    Like,

    Code:
    r_west = yourLayout.getRegion('west');
    r_west.on('resized', pp);
    r_west.on('collapsed', pp);
    r_west.on('expanded', pp);

  8. #18
    Sencha User
    Join Date
    Mar 2007
    Posts
    49
    Vote Rating
    0
    Digital God is on a distinguished road

      0  

    Default


    the best way, that works is use this code
    Code:
    ds.on('load', function(){ grid.getView().autoSizeColumns();} );

  9. #19
    macm
    Guest

    Default


    Thank you for posting this. I spend an hour looking for the answer before I found this post. I just couldn't get the resize event to fire on the NestedLayoutPanel. I appreciate it!!

  10. #20
    Sencha User
    Join Date
    Feb 2011
    Posts
    1
    Vote Rating
    0
    fernals is on a distinguished road

      0  

    Default


    Hello I have the same problem! it has been a long time, but today I found a similar problem when changing the size of my window did not update the size of the columns in my gridext.jpg

    I found a solution:
    Code:
    //win is the window and I added the event "resize" when I update the size
    win.on('resize', function() {
        var grid = Ext.getCmp('grid_geocode'); //this is my grid               
        if(grid != undefined){
           grid.getView().refresh(); //refresh updated the size of columns to new size
        }
    });
    I hope you understand, my english is not good.

    Regards!!