JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Portal - jQuery EasyUI</title>
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/gray/easyui.css">
<link rel="stylesheet" type="text/css" href="https://www.jeasyui.com/easyui/themes/icon.css">
<style>
.max{
position: absolute;
left: 0;
top: 0;
z-index: 9999999;
}
</style>
<script type="text/javascript" src="https://www.jeasyui.com/easyui/jquery.min.js"></script>
<script type="text/javascript" src="https://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="https://www.jeasyui.com/easyui/jquery.portal.js"></script>
<script>
$(function(){
$('#pp').portal({
border:false,
fit:true
});
add();
});
function add(){
var p = $('<div/>').appendTo('body');
p.panel({
title:'Title',
content:$('#cc'),
height:400,
collapsible:true,
maximizable:true,
onMaximize: function(){
var opts = $(this).panel('options');
var p = $(this).panel('panel');
opts.fit = false;
opts.stub = $('<div></div>').insertAfter(p);
p.appendTo('body').css('position','').addClass('max');
$(this).panel('resize', {
width: $(window).width(),
height: $(window).height()
});
},
onRestore: function(){
var opts = $(this).panel('options');
var p = $(this).panel('panel');
p.insertAfter(opts.stub).removeClass('max');
opts.stub.remove();
p.parent().removeClass('panel-noscroll');
}
});
$('#pp').portal('add', {
panel:p,
columnIndex:0
});
$('#pp').portal('resize');
}
</script>
</head>
<body>
<div class="easyui-layout" style="width:100%;height:400px">
<div region="center">
<div id="pp" style="position:relative">
<div style="width:50%;">
</div>
<div style="width:50%;">
</div>
</div>
</div>
</div>
<div id="cc"...