PDA

View Full Version : 3.2.0 final: collapsed panels doesn't show content on expand



abraxxa
8 Apr 2010, 3:46 AM
I'm not sure if this is a bug of I'm doing something wrong (missing layout definition?).

When the panel is initially collapsed and expanded by clicking the button, the top-toolbar is shown but the contents aren't:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>collapsed panel doesn't show content on expand</title>
</head>
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />
<body>
<div id="panel"></div>
</body>
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all-debug.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
new Ext.Panel({
title:'outer panel',
collapsible:true,
collapsed:true,
renderTo:'panel',
tbar:[
'tbartext'
],
items:[{
title:'inside panel',
html:'<p>test</p>'
}]
});
});
</script>
</html>