improve resizing in Window with iframe

This commit is contained in:
Bao Nguyen
2023-02-18 09:59:18 +07:00
parent e7e6a77f6f
commit c96a50d221

View File

@@ -166,10 +166,20 @@
classes: {
"ui-resizable-se": "ui-icon ui-icon-gripsmall-diagonal-se opacity-0"
},
start: () => {
let iframe = node_ref.querySelector('iframe');
if(iframe){
iframe.style.pointerEvents = 'none';
}
},
stop: async () => {
if(options.exec_path){
await set(options.exec_path, node_ref.getBoundingClientRect())
}
let iframe = node_ref.querySelector('iframe');
if(iframe){
iframe.style.removeProperty('pointer-events');
}
}
})
}