forked from 0x2620/oxjs
make map fill parent element
This commit is contained in:
parent
6496f4d0f6
commit
802600f19f
3 changed files with 110 additions and 32 deletions
|
|
@ -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
|
||||
});
|
||||
});
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue