EasyUI Forum
April 25, 2024, 05:43:37 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to set the panel height after resize in portal to the new height permanently  (Read 6518 times)
andreas
Newbie
*
Posts: 3


View Profile
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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()
});
}
})
Logged
andreas
Newbie
*
Posts: 3


View Profile
« Reply #2 on: April 10, 2014, 05:45:45 AM »

 Smiley Thanks - that works. 
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!