3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">var ResizableExample = {
\r
11 var basic = new Ext.Resizable('basic', {
\r
18 var animated = new Ext.Resizable('animated', {
\r
29 var wrapped = new Ext.Resizable('wrapped', {
\r
37 var transparent = new Ext.Resizable('transparent', {
\r
41 preserveRatio: true,
\r
45 var custom = new Ext.Resizable('custom', {
\r
50 preserveRatio: true,
\r
55 var customEl = custom.getEl();
\r
56 // move to the body to prevent overlap on my blog
\r
57 document.body.insertBefore(customEl.dom, document.body.firstChild);
\r
59 customEl.on('dblclick', function(){
\r
60 customEl.hide(true);
\r
64 Ext.get('showMe').on('click', function(){
\r
66 customEl.show(true);
\r
69 var dwrapped = new Ext.Resizable('dwrapped', {
\r
79 var snap = new Ext.Resizable('snap', {
\r
91 Ext.EventManager.onDocumentReady(ResizableExample.init, ResizableExample, true);</pre>
\r