Mootools Ext Adapter
Here is my attempt at creating a mootools adapter for the fantastic Ext library by Jack Slocum.
Download
Any help testing would be much appreciated
Testing
Jack's Demos Using mootools
Be aware that some of the ajax examples may not work, but not because of the adapater.
Hopefully Jack will help us with the nitty gritty :)
I've mainly tested FF2 and IE7.
If anyone else finds some problems (and hopefully solutions) let me know and I will post
them here. mark (dot) fabrizio (at) gmail (dot) com.
Discuss
Please discuss this on the yui-ext forum post.
Problems
Problems will be listed here. They are green if they have been fixed. If everything is green,
no worries!
- document.getElementById is not a function on window unload
- getViewportHeight() is incorrect
- IE7 - on the Resizeable examples - Resizing only works for the first element you resize.
After that, nadda.
- In the MessageBox and Progress example, the first time the notifier slides down
it is not center aligned- it is off to the left. Subsequent calls are fine.
- Toolbar menu looks weird because it is looking for an image:
/deploy/ext-1.0-alpha3/resources/images/default/s.gif
- In the Nested Layouts example, if you collapse the west region, you cannot
expand it again.
Resolutions
Once I figure out quirks that cause the above problems, I will post the resolution here.
- Must detect if event being added is a window.onunload event. If so, the mootools
Garbage collection must be removed as a listener before adding a new listener,
and appended after.
- Mootools Window.getHeight only returns the document height, not the innerHeight.
I copied the code for getViewportHeight from the prototype adapter.
- No fix yet.
- [jack] - I think that's a bug in all adapters. Not sure why but I have seen it as well.
- [jack] - In examples.js it configures Ext.BLANK_IMAGE_URL to point to that url. In the next rev that path will be relative.
- No fix yet.