EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: andreas on April 10, 2014, 12:06:41 AM



Title: how to set the panel height after resize in portal to the new height permanently
Post by: andreas on April 10, 2014, 12:06:41 AM
I've added the .resizable({ handles:'s'}) to the panel in the first step this work. I can resize the height. but if i do any other aktion like move a panel the height switch to the old value.


Title: Re: how to set the panel height after resize in portal to the new height permanently
Post by: stworthy on April 10, 2014, 01:50:21 AM
When stop resizing, you need to call 'resize' method for the panel to set its new height value.
Code:
$('.portal-p').resizable({
handles:'s',
onStopResize:function(e){
$(this).panel('resize',{
height:e.data.height+$(this).panel('header').outerHeight()
});
}
})


Title: Re: how to set the panel height after resize in portal to the new height permanently
Post by: andreas on April 10, 2014, 05:45:45 AM
 :) Thanks - that works.