|
[插件使用]
insertViewToCurWindow和Frame层叠关系异常
[复制链接]
原生使用insertViewToCurWindow在当前Window上打开一个地图层,在地图之上使用OpenFrame打开一个Html写的搜索框,需要Frame在地图之上,但是现在经常性的会让地图遮盖,而且没有规律,请问如何处理?效果图:
代码:
apiready = function() {
var footerPos = $('#footer-menu').offset();
var bodyPos = $('body').offset();
var bmap = api.require('HTBDMap');
bmap.addView({
h: bodyPos.h - footerPos.h
});
api.openFrame({
name: 'index_search_frm',
url: 'index_search_frm.html',
bounces: false,
rect: {
x: 10,
y: 30,
w: api.winWidth-20,
h: '40px'
}
});
api.bringFrameToFront({
from: 'index_search_frm'
});
};
|
|