YUI recommends YUI3.
YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.
This documentation is no longer maintained.
This example shows how to make a DIV resizable, using a proxy element and animation.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse justo nibh, pharetra at, adipiscing ullamcorper.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse justo nibh, pharetra at, adipiscing ullamcorper.
We are just going to make the element #resize
resizable.
Note that we have placed the CSS property overflow: hidden
on the element to keep the text from escaping when we resize.
To make use of the proxy element, simply pass proxy: true
as part of the Resize configuration.
Note: You must use the proxy
option if you want to use the animate
option.
All YUI 2.x users should review the YUI 2.8.2 security bulletin, which discusses a vulnerability present in YUI 2.4.0-2.8.1.
Copyright © 2013 Yahoo! Inc. All rights reserved.