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
@*/
that.reloadPages = function() {
var page = self.page;
clear();
self.page = page
that.$content.empty();
loadPages(self.page);
// this is called by TextList when the column layout changes
var page, scrollLeft, scrollTop;
if (!self.isAsync) {
scrollLeft = that.scrollLeft();
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;
};

View file

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