views:

33

answers:

1

Hi there,

I am using the doLayout function on a window.

    var win = new Ext.Window({
    id: 'site-action-window',
    closeAction: 'hide',
    resizable: false,
    layout: 'fit'
});

    function showWin(f) {
    win.removeAll();
    win.add(f);
    win.setSize(400, 150);
    win.setTitle(localize.addLanguage);
    win.show();
    win.doLayout();
}

when I call this function for the first time all is working fine. but once I make a second call I get an error saying "b.getPositionEl().dom is undefined" from the fire bug. can anyone explain?

thanks

A: 

Since you're already using Firebug, look at the stack trace. What's b? You need to do a little debugging.

bmoeskau