1
0
Fork 0
forked from 0x2620/oxjs

make find work in listcalendar; fill first page in static text lists with few items; listen to width/height changes in listmap and listcalendar; fix a bug where maps would load without zoombar

This commit is contained in:
rlx 2011-10-11 09:09:20 +00:00
commit 9fb30bf1af
5 changed files with 55 additions and 34 deletions

View file

@ -824,15 +824,13 @@ Ox.ListMap = function(options, self) {
setOption <f> setOption
@*/
self.setOption = function(key, value) {
Ox.print('ONCHANGE')
if (key == 'height' || key == 'width') {
Ox.print('ONCHANGE...')
self.$map.options({
height: self.options.height,
width: self.options.width
})
if (key == 'height') {
self.$list.size();
self.$map.resizeMap();
} else if (key == 'selected') {
self.$list.options({selected: value});
} else if (key == 'width') {
self.$map.resizeMap();
}
}