This is a migrated thread and some comments may be shown as answers.

LayoutChange-Event getting height of panel

0 Answers 86 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Mathias
Top achievements
Rank 1
Mathias asked on 27 Sep 2012, 10:05 AM
Hi everyone,

I try to use the LayoutChange-Event to get the height of the previous panel. Here is the method I call with the event:
function onMultiLookupWindowSplitterResize(e)
{
    if (e.sender.resizing != undefined && e.sender.resizing.previousPane != undefined)
        $('#lookupGridContainer').height(e.sender.resizing.previousPane.height() - 40);
}

It really works fine. The only problem is. When I collapse a panel it doesn't really work. The previousPane is undefined and so I don't get the height.

If i resize the splitter first and THEN collapse one panel the previousPane is correctly defined. So the problem occurs only if I collapse a panel BEFORE resizing.

Hope you understand what I mean. Is this a bug? Is there any solution for this?

Thanks,
Mathias

No answers yet. Maybe you can help?

Tags
Splitter
Asked by
Mathias
Top achievements
Rank 1
Share this question
or