X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..2e847cf21b8ab9d15fa167b315ca5b2fa92638fc:/src/widgets/list/ListView.js
diff --git a/src/widgets/list/ListView.js b/src/widgets/list/ListView.js
index d02bdf77..c25bd845 100644
--- a/src/widgets/list/ListView.js
+++ b/src/widgets/list/ListView.js
@@ -1,13 +1,13 @@
/*!
- * Ext JS Library 3.0.0
- * Copyright(c) 2006-2009 Ext JS, LLC
+ * Ext JS Library 3.1.1
+ * Copyright(c) 2006-2010 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
/**
- * @class Ext.ListView
+ * @class Ext.list.ListView
* @extends Ext.DataView
- *
Ext.ListView is a fast and light-weight implentation of a
+ *
Ext.list.ListView is a fast and light-weight implentation of a
* {@link Ext.grid.GridPanel Grid} like view with the following characteristics:
*
* - resizable columns
@@ -48,7 +48,7 @@ var store = new Ext.data.JsonStore({
});
store.load();
-var listView = new Ext.ListView({
+var listView = new Ext.list.ListView({
store: store,
multiSelect: true,
emptyText: 'No images to display',
@@ -93,7 +93,7 @@ listView.on('selectionchange', function(view, nodes){
* @param {Object} config
* @xtype listview
*/
-Ext.ListView = Ext.extend(Ext.DataView, {
+Ext.list.ListView = Ext.extend(Ext.DataView, {
/**
* Set this property to true to disable the header click handler disabling sort
* (defaults to false).
@@ -138,12 +138,13 @@ Ext.ListView = Ext.extend(Ext.DataView, {
*/
/**
* @cfg {Number} scrollOffset The amount of space to reserve for the scrollbar (defaults to
- * 19 pixels)
+ * undefined). If an explicit value isn't specified, this will be automatically
+ * calculated.
*/
- scrollOffset : 19,
+ scrollOffset : undefined,
/**
* @cfg {Boolean/Object} columnResize
- * Specify true or specify a configuration object for {@link Ext.ListView.ColumnResizer}
+ * Specify true or specify a configuration object for {@link Ext.list.ListView.ColumnResizer}
* to enable the columns to be resizable (defaults to true).
*/
columnResize: true,
@@ -179,7 +180,7 @@ Ext.ListView = Ext.extend(Ext.DataView, {
*/
/**
* @cfg {Boolean/Object} columnSort
- * Specify true or specify a configuration object for {@link Ext.ListView.Sorter}
+ * Specify true or specify a configuration object for {@link Ext.list.ListView.Sorter}
* to enable the columns to be sortable (defaults to true).
*/
columnSort: true,
@@ -188,20 +189,25 @@ Ext.ListView = Ext.extend(Ext.DataView, {
* The template to be used for the header row. See {@link #tpl} for more details.
*/
+ /*
+ * IE has issues when setting percentage based widths to 100%. Default to 99.
+ */
+ maxWidth: Ext.isIE ? 99 : 100,
+
initComponent : function(){
if(this.columnResize){
- this.colResizer = new Ext.ListView.ColumnResizer(this.colResizer);
+ this.colResizer = new Ext.list.ColumnResizer(this.colResizer);
this.colResizer.init(this);
}
if(this.columnSort){
- this.colSorter = new Ext.ListView.Sorter(this.columnSort);
+ this.colSorter = new Ext.list.Sorter(this.columnSort);
this.colSorter.init(this);
}
if(!this.internalTpl){
this.internalTpl = new Ext.XTemplate(
'