Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rich:dataTable filter textfield width

 
Db Riekhof
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Seems like a simple problem but it has me stumped. How do you set the width of the default filter textfield that appears in the header row? The filter textfield is taking up too much horizontal space in a few columns. We're using richfaces 3.2.2.CR4.

I'm using the default filtering like this:

 
Db Riekhof
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spoke to a co-worker a little more adept at CSS than me, he showed me how to look up the textfield's style class using Firefox's Firebug Inspect Element. The fix was to add this to our .css:

.rich-filter-input {
width: 100%;
}


I think it was set to auto by default. 100% works a little better for our needs.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic