PDA

View Full Version : [OPEN] Resizable features



rgraff
23 Oct 2006, 8:05 AM
A couple requests related to Resizable.

Extend Panel to create ResizablePanel. Applying Resizable currently to a Panel element works, but the Panel shadow doesn't resize properly North or West. Resizing a Panel should resize the body div only and not the header/footer.

Resizable should have a way to indicate North/South or East/West changes only.

resizeChild should be able to take an element or string indicating which child to resize.

-Robert

jack.slocum
23 Oct 2006, 1:33 PM
Extend Panel to create ResizablePanel. Applying Resizable currently to a Panel element works, but the Panel shadow doesn't resize properly North or West. Resizing a Panel should resize the body div only and not the header/footer.

I currently don't use or extend any of the YUI dialogs. They are too heavy for my taste. If you want to do this I will integrate the code. Using the resizeChild change below, it should be trivial.

Resizable should have a way to indicate North/South or East/West changes only.

This is done using CSS. Set the handles to disable to display:none. You could also do it through script:
resizer.west.setStyle('display', 'none');

resizeChild should be able to take an element or string indicating which child to resize.

This is a great suggestion and I have implemented it. resizeChild can be a boolean (current behavior), string id, dom node or YAHOO.ext.Element object.