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:
parent
5a04e4fb8e
commit
9fb30bf1af
5 changed files with 55 additions and 34 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue