Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (19 sloc) 0.526 kb
<!DOCTYPE html>
<title>Creating a Constrained Resizable Node</title>
#demo {
width: 100px; height: 100px; border: 1px #000 solid; background: #d72;
position: relative;
<div id="demo"></div>
<script src=''></script>
YUI().use('resize', 'resize-constrain', function (Y) {
var resize = new Y.Resize({ node: '#demo' });
resize.plug(Y.Plugin.ResizeConstrained, {
minWidth: 50,
maxWidth: 200
Jump to Line
Something went wrong with that request. Please try again.