Hi! I tried to create a dataview where images can be viewed but my implementation makes the images display downwards making some of the images not viewable. Is there a way to make the images fit inside the panel? Appreciate the help.
Code:
var iPanel= new Ext.panel.Panel({
width: 490,
height: 500,
layout: 'fit',
title: 'Select an avatar',
floating: true,
closable : true,
items: {
extend: 'Ext.view.View',
xtype: 'dataview',
id: 'myDataView',
autoHeight:true,
reference: 'dataview',
itemSelector: 'div.dataview-multisort-item',
store: Ext.create('Admin.store.users.UsersAvatarStore'),
tpl: [
'<tpl for=".">',
'<div>',
'<a href="#">',
'<img id="{name}" src="resources/images/default-avatars/{thumb}" height="72" weigh="72"/>',
'</a>',
'</div>',
'</tpl>',
]
}