That's a good argument, and one I might be willing to buy. There is though one good reason I argued for putting more into AbstractImage which I didn't mention. Our core UI library is meant to essentially reflect the DOM and provide a better API into it. In a way, the reason we have an Image class is because there is an <img> HTML element. Same with many of our other core widgets. I think the reason it makes sense to put more stuff into AbstractImage is that if we ever added in something else that was kind of Image like but didn't contain an <img> element, maybe it shouldn't be an Image at all. So at the very least, I'd think AbstractImage should have the load listeners.
Well, the ImagleBundle, at least as we last discussed it over lunch, would actually not be an <img> tag to avoid the padding issue. However, I think you clearly want the individual images in that to be usable where an image is elsewhere.
Just wondering why are you guys worry about Image strips which are essentially an optimisation but dont have proper support for many lower level abstracts eg - inline styles, computed styles, regular native objects which should be mandatory. Everything you do works with inline/computed styles...
For widget developers there should be a layer around styles etc. All
widgets being written need to address the differences between all
browsers. The DOM class takes care of the nasties for Elements - the
same should exist for styles.
I would vote on getting this done before worrying about ImageStrips.
If one starts from the bottom up, thjese low level abstracts are the
next step.
First the compiler and related runtime support, abstractions over
native objects ( eg DOM support for Event, Element, some support for
styles) and in turn ytou use the bits below to build higher level
abstractions (widgets!).
On Feb 7, 7:48 am, "Scott Blum" <sco...@google.com> wrote: