EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: WizPS on January 17, 2021, 08:07:00 AM



Title: Maximizing portal panel not working as expected
Post by: WizPS on January 17, 2021, 08:07:00 AM
Maximizing portal panel just gets a bit higher instead of getting maximized across the window.

How can I get portal panel to be maximized across the window?

I added
Code:
maximizable: true
to
Code:
$(function(){
$('#pp').portal({
border:false,
fit:true
});
add();
});
function add(){
for(var i=0; i<3; i++){
var p = $('<div/>').appendTo('body');
p.panel({
title:'Title'+i,
content:'<div style="padding:5px;">Content'+(i+1)+'</div>',
height:100,
closable:true,
collapsible: true,
maximizable: true
});
$('#pp').portal('add', {
panel:p,
columnIndex:i
});
}
$('#pp').portal('resize');
}
Please advice.


Title: Re: Maximizing portal panel not working as expected
Post by: jarry on January 18, 2021, 12:54:02 AM
Please update the jquery.portal.js file to a newer version.

https://www.jeasyui.com/extension/portal.php


Title: Re: Maximizing portal panel not working as expected
Post by: WizPS on January 21, 2021, 06:04:40 PM
I tested and getting the same result. Have double checked and it's using the latest  ver. 1.0.1.

What am I missing?


Title: Re: Maximizing portal panel not working as expected
Post by: jarry on January 21, 2021, 07:24:12 PM
Please look at this example http://code.reloado.com/izixoz3/edit#preview. It works fine.