[Seaside] Modify WAHtmlRenderer>>imageWithForm: to allow not setting of IMG width and height attributes

Yar Hwee Boon hboon at motionobj.com
Sat Jan 1 08:58:06 CET 2005


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  
generated.

-- 
Regards
HweeBoon
MotionObj


More information about the Seaside mailing list