[Seaside] Modify WAHtmlRenderer>>imageWithForm: to allow not
setting of IMG width and height attributes
avi.bryant at gmail.com
Sat Jan 1 13:27:29 CET 2005
> On Sat, 01 Jan 2005 15:58:06 +0800, Yar Hwee Boon <hboon at motionobj.com> wrote:
> I suggest modifying WAHtmlRenderer>>imageWithForm: to
> imageWithForm: aForm
> (aForm width = 0 or: [aForm height = 0])
> ifTrue: [self image: (self context urlForDocument: aForm)]
> ifFalse: [self image: (self context urlForDocument: aForm)
> width: aForm width
> height: aForm height]
> so that if #width or/and #height is 0 no width/height attributes will be
What's the rationale here?
If we want some value to use for "unknown" I'd suggest that nil is a better bet.
More information about the Seaside