PDA

View Full Version : Bug with initially collapsed BorderLayout regions



Saeven
1 Aug 2007, 9:14 AM
Just a reminder, as this is a bit of a showstopper where collapsed panels are concerned.
http://extjs.com/forum/showthread.php?t=9319

Thanks for your continued hard work!
Alex

jack.slocum
1 Aug 2007, 3:06 PM
The splitbar issue is fixed in SVN (as of today). I need some kind of test case for the other one. Can you create a file I can drop into examples/layout and try to track the issue down? Thanks.

Saeven
1 Aug 2007, 5:43 PM
Hope this helps:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />

<!-- Ajax Stack -->
<script type="text/javascript" src="ext/yui-utilities.js"></script>
<script type="text/javascript" src="ext/ext-yui-adapter.js"></script>
<script type="text/javascript" src="ext/ext-all.js"></script>
<!-- End Ajax Stack -->


<script type="text/javascript">
Ext.onReady( function(){

var layout = new Ext.BorderLayout( 'system_container', {
center: {
autoScroll: true
},
east: {
title: "Instant Suggestions (click titles below)",
split: true,
initialSize: 275,
minSize: 275,
autoScroll:true,
collapsible:true,
collapsed:true,
titlebar: true,
resizable: false
}
});

layout.beginUpdate();
layout.add( 'center', new Ext.ContentPanel( 'center_container' ) );
layout.add( 'east', new Ext.ContentPanel( 'east_container' ) );
layout.endUpdate();
});
</script>

</head>

<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<center>
<div id="system_container" style="width:830px;height:510px;" align="left">

<div id="center_container">

</div>

<div id="east_container">

</div>

</div>
</center>
</body>
</html>


Cheers.
Alex

Saeven
1 Aug 2007, 5:52 PM
Seems the latest SVN fixes this too. Looks like a case closed!

jack.slocum
1 Aug 2007, 11:32 PM
That's great! :)