Be sure your post includes:
1. smartgwt 4.0pNov07
2. Firefox 24.8.1
Question:
I am trying to make an AutoFitTextAreaItem with maxHeight set, but I also want a vertical scrollbar in case someone puts in lots of text. The problem is that it always sets overflow: hidden, so excess text just disappears.
I used FireBug to edit the style in the browser and after some experimentation, what I want is to add in overflow-y: scroll and remove overflow: hidden from the style. This solves the problem (in Firefox 24 dev mode at least). Unfortunately, I can't find a way to modify the styles the way I want using any of the FormItem/TextAreaItem/AutoFitTextAreaItem methods.
This is going in to a DynamicForm, so I want the solution to be a subclass of Formitem.
It seems bizarre that TextAreaItem has scrollbars but direct subclass AutoFitTextAreaItem doesn't get them back when you call setMaxHeight(). I understand why AutoFitTextAreaItem doesn't have scrollbars normally, but they should reappear when you limit the height of the box.
1. smartgwt 4.0pNov07
2. Firefox 24.8.1
Question:
I am trying to make an AutoFitTextAreaItem with maxHeight set, but I also want a vertical scrollbar in case someone puts in lots of text. The problem is that it always sets overflow: hidden, so excess text just disappears.
I used FireBug to edit the style in the browser and after some experimentation, what I want is to add in overflow-y: scroll and remove overflow: hidden from the style. This solves the problem (in Firefox 24 dev mode at least). Unfortunately, I can't find a way to modify the styles the way I want using any of the FormItem/TextAreaItem/AutoFitTextAreaItem methods.
This is going in to a DynamicForm, so I want the solution to be a subclass of Formitem.
It seems bizarre that TextAreaItem has scrollbars but direct subclass AutoFitTextAreaItem doesn't get them back when you call setMaxHeight(). I understand why AutoFitTextAreaItem doesn't have scrollbars normally, but they should reappear when you limit the height of the box.
Comment