Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3660 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

[XPATCH] Resizable Class Draft

Reported by: recidive@gmail.com Assigned to: thomas@fesch.at
Priority: normal Milestone:
Component: script.aculo.us Version:
Severity: normal Keywords:
Cc:

Description

I've created a script to do add resizable edges to elements, based on scriptaculous dragable. It works fine on Firefox, some work are needed to put it working in other browsers, and some code clean are needed too. Take a look at an example, and at the source code (sorry about the tab stuff).

Henrique Recidive

Attachments

resize.js (5.4 kB) - added by recidive@gmail.com on 01/31/06 06:42:13.
Resizable Source Code
resize_updated.tar.gz (49.5 kB) - added by tsukue@gmail.com on 04/10/06 04:17:21.
resize.js updated to catch up with current changes in dragdrop.js

Change History

01/31/06 06:42:13 changed by recidive@gmail.com

  • attachment resize.js added.

Resizable Source Code

02/15/06 23:11:40 changed by rubyonrails@brainsick.com

  • summary changed from Resizable Class Draft to [XPATCH] Resizable Class Draft.

04/10/06 04:17:21 changed by tsukue@gmail.com

  • attachment resize_updated.tar.gz added.

resize.js updated to catch up with current changes in dragdrop.js

04/10/06 04:23:36 changed by tsukue@gmail.com

I've modified this resize.js to catch up with the recent changes in dragdrop.js. Snap, constraint and scrolling options are available, and also minSize and maxSize options which I personally needed for myself.

See attached file resize_updated.tar.gz. Samples (could also be functional tests) included.

Constraint option can be specified by string (eg. 'es', 'nswe'...) Snap option can be specified as scalar (eg. 20), array (eg. [20,5]) or function which takes 2 arguments, the first argumnet being an array of co-ordinates [left, top, right, bottom] and the second being the resizable object itself.