1
0
Fork 0
forked from 0x2620/oxjs

make map fill parent element

This commit is contained in:
rlx 2011-03-05 17:46:35 +00:00
commit 802600f19f
3 changed files with 110 additions and 32 deletions

View file

@ -60,6 +60,9 @@ $(function() {
zoombar: true
})
.bindEvent({
resize: function(event, data) {
map.resizeMap();
},
selectplace: function(event, data) {
Ox.print('DATA', data)
panel.replaceElement(1, list = new Ox.TreeList({
@ -83,7 +86,8 @@ $(function() {
}
}));
}
}),
});
list = new Ox.TreeList({
data: [],
width: 256
@ -95,6 +99,8 @@ $(function() {
},
{
element: list,
resizable: true,
resize: [128, 256, 384],
size: 256
}
],
@ -102,14 +108,21 @@ $(function() {
})
.appendTo($('body'));
map.gainFocus();
//setTimeout(function() {
//map.appendTo($('body'));
map.gainFocus();
//}, 2000)
/*
$(window).resize(function() {
map.options({
height: window.innerHeight,
width: window.innerWidth - 256
});
});
*/
});