I'm getting a strange behavior with a Panel
that is collapsible.
My app is running on 4.2.1, but I have create a JSFiddle
to simulate the issue:
UPDATE I create Sencha Fiddle (better) https://fiddle.sencha.com/#fiddle/7vk
I have a main panel that holds two items: a Grid with flex: 1
and a Panel in the bottom that is collapsible
.
var grid = Ext.create('Ext.grid.Panel',{
title:'Grid',
flex: 1,
columns:[]
});
var panel = Ext.create('Ext.panel.Panel',{
renderTo: Ext.getBody(),
title:'Hola',
layout: {
type: 'vbox',
align: 'stretch'
},
items: [
{
xtype: 'grid',
padding: 10,
title: 'test',
columns:[],
flex: 1,
border: 1
},
{
xtype: 'panel',
padding: 10,
title: 'test',
collapsible: true,
collapsed: true,
height: 300,
border: 1
}
]
});
When you expand the panel it the animation goes to the top of the view and then goes down. Very strange.
Any clue?