On Oct 2, 3:30 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > The interesting comment ishttp://drupal.org/node/315035#comment-1038063 > > Too bad he didn't provide more details on the issues he had with > resizable. Otherwise there don't seem to be complaints.
Here's a quick overview of the main problem. I described the problems very briefly here: http://drupal.org/node/301660#comment-1016189. Basically, I needed to resize *multiple* elements simultaneously and equally, only in height, and only in the southward direction. Resizable provides no easy way for doing this, the only thing I could come up with, is creating a div that is the grip (i.e. a custom handle) for resizing and setting the alsoResize property to a selector that matches all the elements I wanted to be resized. Probably this is something Resizable wasn't designed to do. Resizable had issues with only resizing in one direction when a custom handle was being used: it would also resize in the width, while I clearly only give a "south" handle in the code (see first paste). Then you wonder … how could it detect any change in width if you only have a south-handle? Yet it did. It would cut off 4px in width *every* time. The relevant piece of JS code: http://pastie.textmate.org/288172. And the changes I made to ui.resizable.js: http://pastie.textmate.org/288176 (against 1.5.2). Finally, the reasons that I say "The code is also so incredibly ugly and inconsistent" are these: - inconsistent comment style: http://pastie.textmate.org/288182 - inconsistent coding style: http://pastie.textmate.org/288184 - lack of comments (most parts are not understandable if you're not already into the heavier jQuery stuff): http://pastie.textmate.org/288186 - incomplete documentation: http://docs.jquery.com/UI/Resizables/resizable#options, this doesn't even mention the existence of alsoResize, minHeight or even handles! P.S.: I'm a fan of jQuery, but the above simply needs work. I hope I didn't offend anybody. Cheers, Wim ~ http://wimleers.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
