Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Combobox height is not changing

 
Aalok Mishra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to populate a combobox using struts tag. The backend table has so many rows in it hence the list is quite big. The problem is like when I try to set the size of the combo box then it changes the look of combo box. Can any one help me out of this?
My code is as follws:

 
Brahmani Ganduri
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the 'style:width and height' attribute to set the look of the combo box.
I think that will do.
 
Aalok Mishra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply buddy!

But there is one small problem here. The width can be set using style but height does not work with style. Again the combo box do not support the height attribute all alone.
 
Brahmani Ganduri
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aalok Mishra wrote:Thanks for your reply buddy!

But there is one small problem here. The width can be set using style but height does not work with style. Again the combo box do not support the height attribute all alone.


Even height can be set using 'style'. It definitely works. Both height and width go together in style attribute.
,"width:25;height:30"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic