Thank you for reporting this bug. We will make it our priority to review this report.
Ext.panel.Panel disappears on 'collapse' !
REQUIRED INFORMATIONExt version tested:
Browser versions tested against:
DOCTYPE tested against:
Steps to reproduce the problem:
- Panel disappears after collapse.
After 'My Panel 2' collapsed.Panel_second.png
How it should look when fixed.Panel_third.png
Screenshot or Video:
Don't use getBoundingClientRect() or set 'display: none' after getBoundingClientRect() call.
- getBoundingClientRect() returns empty ClientRect if element not displayed ( style="display: none" ) :
- bottom: 0
- height: 0
- left: 0
- right: 0
- top: 0
- width: 0
didn't make an investigation on this, because of no free time but could be related: http://www.sencha.com/forum/showthre...ayout-elements
Thx for answer..
Hard to make some reference to your example, because your one doesn't render properly:
I have provided source code and live example in my 'defect' description with possible solution to fix.. plz look if you have time..
may be because of jsfiddle(I already tested a few examples on it, and every time renders in its way, not how should be, there's sth wrong with it), I would recommend you verify your tests with the browser directly, and the exemple provided by me is from docs, you can test even there.
this screenshot made from my test ( Chrome ), not from jsfiddle. Here is source code ( Extjs v4.0.7 ):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
title: "HBoxLayout Panel",
title: 'Inner Panel One',
title: 'Inner Panel Two',
title: 'Inner Panel Three',
could not replicate your words about my example, tested on chrome on Snow Leop. and Win7