fix a bug with adding/removing columns of synchronous textlists
This commit is contained in:
parent
f43122f795
commit
7ac16acbf1
2 changed files with 18 additions and 6 deletions
|
@ -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
|
||||||
|
var page, scrollLeft, scrollTop;
|
||||||
|
if (!self.isAsync) {
|
||||||
|
scrollLeft = that.scrollLeft();
|
||||||
|
scrollTop = that.scrollTop();
|
||||||
|
loadItems();
|
||||||
|
that.scrollLeft(scrollLeft).scrollTop(scrollTop);
|
||||||
|
} else {
|
||||||
|
page = self.page;
|
||||||
clear();
|
clear();
|
||||||
self.page = page
|
self.page = page
|
||||||
that.$content.empty();
|
that.$content.empty();
|
||||||
loadPages(self.page);
|
loadPages(self.page);
|
||||||
|
}
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue