|
|
|
@ -42,10 +42,12 @@ __jx_modalw__.render.modal = function(args){
|
|
|
|
|
bg.style.gridTemplateColumns = '10% 80% 10%'
|
|
|
|
|
bg.style.gridTemplateRows = '10% 80% 10%'
|
|
|
|
|
var iframe = jx.dom.get.instance('IFRAME')
|
|
|
|
|
args.css = (args.css != null)?args.css:{}
|
|
|
|
|
|
|
|
|
|
iframe.src = args.url
|
|
|
|
|
iframe.frameBorder = 0
|
|
|
|
|
iframe.style.width = '99%'
|
|
|
|
|
iframe.style.height= '99%'
|
|
|
|
|
iframe.style.width = '99%' //(args.css.width == null)?'99%':args.css.width
|
|
|
|
|
iframe.style.height= '99%' //(args.css.height==null)?'99%':args.css.height
|
|
|
|
|
iframe.style.backgroundColor = '#ffffff'
|
|
|
|
|
iframe.className = 'border-round border'
|
|
|
|
|
frame.appendChild(iframe)
|
|
|
|
@ -98,14 +100,18 @@ __jx_modalw__.render.show = function(info){
|
|
|
|
|
info.background.className = 'jxmodal'
|
|
|
|
|
// info.background.style.position = 'absolute'
|
|
|
|
|
|
|
|
|
|
var parent = (info.target != null)?jx.dom.get.instance(info.id): document.body
|
|
|
|
|
var parent = (info.target != null)?jx.dom.get.instance(info.target): document.body
|
|
|
|
|
|
|
|
|
|
var height = $(parent).height()
|
|
|
|
|
var width = $(parent).width()
|
|
|
|
|
|
|
|
|
|
parent.appendChild(info.background)
|
|
|
|
|
// if(info.html == null){
|
|
|
|
|
|
|
|
|
|
info.background.style.top = 0
|
|
|
|
|
info.background.style.left =0
|
|
|
|
|
info.background.style.position = 'absolute'
|
|
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
// $(info.background).width(width+(width*0.01))
|
|
|
|
|
// $(info.background).height(height+(height*0.1))
|
|
|
|
|