[Seaside] Magritte : text area size with MAMemoDescription

Lukas Renggli renggli at gmail.com
Sat Jun 23 17:54:09 UTC 2007


> I'm making a small application with Seaside.
> I use Magritte to describe and build forms.
> I saw I could change the line count of a text area build with
> MAMemoDescription with the method #lineCount: , but how can I change the
> width ?

CSS is the preferred way.

If really unavoidable you can also change the attributes of the
generated textarea like this:

descriptionContents
	| desc |
	desc := MAMemoDescription new.
	...
	desc attributes at: 'cols' put: 80.
	...
	^ desc

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list