fix a bug with adding/removing columns of synchronous textlists

This commit is contained in:
rlx 2011-10-11 16:00:58 +00:00
parent f43122f795
commit 7ac16acbf1
2 changed files with 18 additions and 6 deletions

View file

@ -1548,11 +1548,20 @@ Ox.List = function(options, self) {
() -> <o> the list () -> <o> the list
@*/ @*/
that.reloadPages = function() { that.reloadPages = function() {
var page = self.page; // this is called by TextList when the column layout changes
clear(); var page, scrollLeft, scrollTop;
self.page = page if (!self.isAsync) {
that.$content.empty(); scrollLeft = that.scrollLeft();
loadPages(self.page); scrollTop = that.scrollTop();
loadItems();
that.scrollLeft(scrollLeft).scrollTop(scrollTop);
} else {
page = self.page;
clear();
self.page = page
that.$content.empty();
loadPages(self.page);
}
return that; return that;
}; };

View file

@ -65,10 +65,13 @@ Ox.ListMap = function(options, self) {
}, },
id: 'countryCode', id: 'countryCode',
resizable: false, // fixme: implement resizable: false, // fixme: implement
/*
// fixme: why does this not work? it does in folderBrowserList
title: $('<img>').attr({ title: $('<img>').attr({
src: Ox.UI.getImageURL('symbolFlag') src: Ox.UI.getImageURL('symbolFlag')
// fixme: why does this not work? it does in folderBrowserList
}), }),
*/
title: '\u2691',
visible: true, visible: true,
width: 16 width: 16
}, },