View Full Version : Split-bar elementtodrag object

25 Sep 2006, 1:49 AM
While creating split-bar, i want it to be created without the 'elementtodrag'
i.e. some what like this

var YSB = YAHOO.ext.SplitBar;
var split1 = new YSB(null, 'lnav', null, YSB.LEFT);

Is this possible? (coz. i tried it's giving me some errors)
How do i make it possible? (except for the fact that i can tweak the minSize and maxSize to the same value and remove the e-resize cursor from the lsplit, but still having the lsplit panel on my page. This doesn't seem right to me)

25 Sep 2006, 2:58 AM
I'm a little lost. What good is a SplitBar with no element to drag?

If you are just looking to hide the splitter:

var splitbar = new YAHOO.ext.SplitBar(...);



Did you just want to hide it?

25 Sep 2006, 4:34 AM
I was just trying to have an option of making divisions in the page ( like frameset but without using it) and then i thought of the splitbar control in yui-ext and wondered that it would have been better to have an option to explicitly make it fixed and not re-sizable

25 Sep 2006, 5:05 AM
Hiding the drag element will accomplish that. In fact on my blog when the navigation bar is collapsed, it's not resizable. All I did was hide the splitter element as described above.

25 Sep 2006, 5:43 AM
thanks ..that works perfect :)