Thank you for reporting this bug. We will make it our priority to review this report.
Grid columns viewing error in RTL mode.
Grid columns viewing error in RTL mode.
Check the following example. It shows the problem with rows data (only one column is visible at start). After resizing columns , the related data will be shown! :
Note that if I set flex:1 for the columns, everything would be ok but again if I change the sort of a column, all rows will be disappeared.
Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="http://ift.tt/SksbL0">
<script type="text/javascript" src="http://ift.tt/1fYkZZL"></script>
</head>
<body>
<script>
Ext.onReady(function () {
Ext.create('Ext.data.Store', {
storeId:'simpsonsStore',
fields:['name', 'email', 'phone'],
data:{'items':[
{ 'name': 'Lisa', "email":"lisa@simpsons.com", "phone":"555-111-1224" },
{ 'name': 'Bart', "email":"bart@simpsons.com", "phone":"555-222-1234" },
{ 'name': 'Homer', "email":"homer@simpsons.com", "phone":"555-222-1244" },
{ 'name': 'Marge', "email":"marge@simpsons.com", "phone":"555-222-1254" }
]},
proxy: {
type: 'memory',
reader: {
type: 'json',
root: 'items'
}
}
});
Ext.create('Ext.grid.Panel', {
title: 'Simpsons',
rtl:true,
store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{ text: 'Name', dataIndex: 'name' },
{ text: 'Email', dataIndex: 'email' },
{ text: 'Phone', dataIndex: 'phone' }
],
renderTo: Ext.getBody()
});
});
</script>
</body>
</html>
samedi 3 mai 2014
Grid columns viewing error in RTL mode.
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire