dimanche 25 janvier 2015

[OPEN] Panel not redrawn when moving splitter

I'm using latest Chrome Version 40.0.2214.91 m under Windows 7.

I've downloaded the latest Sencha Cmd: SenchaCmd-5.1.0.26-linux-x64.run.zip and used it to generate the most basic application:

Code:



sencha generate app -ext Gestion ./gestion

From now on I've just added a Ext.tree.Panel following your sample, and just grapping the splitter, moving it to left doesn't redraw the panel.

Just generate a basic app, then copy paste this in Main.js:



Code:



Ext.define('Gestion.view.main.Main', {
extend: 'Ext.container.Container',
requires: [
'Gestion.view.main.MainController',
'Gestion.view.main.MainModel'
],


xtype: 'app-main',


controller: 'main',
viewModel: {
type: 'main'
},


layout: {
type: 'border'
},


items: [{
region: 'west',
xtype: 'panel',
bind: {
title: '{name}'
},
width: '30%',
split: true,
items:[
Ext.create('Ext.tree.Panel', {
fields: ['name', 'description'],
columns: [{
xtype: 'treecolumn',
text: 'Name',
dataIndex: 'name',
flex: 1,
sortable: true
}],
root: {
name: 'Root',
description: 'Root description',
expanded: true,
children: [{
name: 'Child 1',
description: 'Description 1',
leaf: true
}, {
name: 'Child 2',
description: 'Description 2',
leaf: true
}]
}
})
]
},{
region: 'east',
bind: {
title: '{name}'
},
width: '30%',
split: true
},{
region: 'center',
xtype: 'tabpanel',
items:[{
title: 'Tab 1',
html: '<h2>Content appropriate for the current navigation.</h2>'
}]
}]
});

You can watch and test the problem here:

http://ift.tt/1GTWxe8






[OPEN] Panel not redrawn when moving splitter

Aucun commentaire:

Enregistrer un commentaire