EasyUI Forum
April 27, 2024, 07:15:35 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: ComboTree - Resizable tree area  (Read 8606 times)
amir-t
Newbie
*
Posts: 48


View Profile
« on: July 24, 2013, 08:19:49 AM »

Hi,

How can i make the tree area (at the comboTree component) to be resizable by dragging the tree panel if needed (in case of long text of a certain nodes).

Thanks in advance.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 25, 2013, 03:06:35 AM »

Please try the code below:
Code:
var p = $('#cc').combotree('panel');
p.resizable({
onResize:function(){
p.panel('panel')._outerWidth(p.outerWidth()+2);
},
onStopResize:function(){
p.panel('resize',{
width: p.outerWidth(),
height: p.outerHeight()
});
}
});
Logged
amir-t
Newbie
*
Posts: 48


View Profile
« Reply #2 on: July 28, 2013, 01:26:00 AM »

Hi,
I've tried your code but the resize is not working property, the entire panel is moving instead of just be resized.

Is there another code solution?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: July 28, 2013, 06:44:13 AM »

Here is the example that allows the user to resize the drop-down panel.
http://jsfiddle.net/xFy42/
Logged
amir-t
Newbie
*
Posts: 48


View Profile
« Reply #4 on: July 28, 2013, 08:14:17 AM »

Thanks, i think i used that exact example but i'll try it again.

By the way, in my demo, i need to use RTL support (http://www.jeasyui.com/extension/rtl.php).
Maybe this is the reason for my problem? perhaps with RTL support - the Resize implementation requires another changes or addons?
« Last Edit: July 29, 2013, 03:23:47 PM by amir-t » 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!