PDA

View Full Version : [FIXED-167][3.0.x r5161] Combobox is not streched horizontally in vbox layout



marcing
20 Aug 2009, 8:29 AM
Hello,

Combobox works correctly in layout: fit, but it doesn't work as expected in vbox layout, please check attached example and screenshot.

examples/vboxbug/hello.html

Cheers,
Marcin

mjlecomte
22 Aug 2009, 12:27 PM
Condensed test case:

<html>
<head>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../ext-all.js"></script>
<script language="javascript">
Ext.onReady(function(){

var fs = new Ext.FormPanel({
flex: 1, // FLEX 1
defaults: {
anchor: '-1'
},
padding: '15',
items: [
new Ext.form.ComboBox({
fieldLabel: 'Fix me',
hiddenName:'state',
store: new Ext.data.ArrayStore({
fields: ['abbr', 'state'],
data : [
['fl', 'florida'],
['il', 'illinois']
]
}),
valueField:'abbr',
displayField:'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Please fix me'
})
]
});

var win = new Ext.Window({

height:100, width:500, border: false,
title: 'Combobox should be wider, please check',
items: fs,
layout: {
type: 'vbox', // 'fit' works ok
align: 'stretch'
}
}).show();
});
</script>

<body></body>
</html>

evant
24 Aug 2009, 1:07 AM
Added a fix to SVN.

marcing
24 Aug 2009, 2:03 AM
Works. Thanks.