Re: Set width of auto complete text field?

2009-01-21 Thread Daniel Peters
Jeremy Thomerson wrote:
 Any one?
 
 Thank you,
 
You can use the CSS keyword !important to override the wicket definition.

Here is what I use in my app to format the autocomplete-fields:

div.wicket-aa-container {width:auto !important;}
div.wicket-aa {background-color: white;border:1px solid #ccc;padding: 
1px;margin-top:1px;text-align:left;}
div.wicket-aa ul {list-style:none; padding:0; margin:0;}
div.wicket-aa ul li {padding:1px 5px 1px 5px;}
div.wicket-aa ul li.selected {background-color:#ff6600}


-Daniel

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Set width of auto complete text field?

2009-01-21 Thread Peter Ertl

All you want to know is summed up here :-)

http://issues.apache.org/jira/browse/WICKET-1716


Am 21.01.2009 um 11:56 schrieb Daniel Peters:


Jeremy Thomerson wrote:

Any one?

Thank you,

You can use the CSS keyword !important to override the wicket  
definition.


Here is what I use in my app to format the autocomplete-fields:

div.wicket-aa-container {width:auto !important;}
div.wicket-aa {background-color: white;border:1px solid  
#ccc;padding: 1px;margin-top:1px;text-align:left;}

div.wicket-aa ul {list-style:none; padding:0; margin:0;}
div.wicket-aa ul li {padding:1px 5px 1px 5px;}
div.wicket-aa ul li.selected {background-color:#ff6600}


-Daniel

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Set width of auto complete text field?

2009-01-20 Thread Jeremy Thomerson
Any one?

Thank you,

-- 
Jeremy Thomerson
http://www.wickettraining.com


On Tue, Jan 13, 2009 at 4:01 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 Is there a way to set the width of the popup list of choices for the auto
 compete behavior (auto complete text field)?  I have tried using CSS, but
 the problem is that wicket-autocomplete.js sets the width programmatically,
 which overrides any CSS I use.  I don't see any hooks in the JS file to
 override the JS method and set my own width, etc.  Any ideas?

 I did this:
 div.wicket-aa-container, div.wicket-aa {
 width: 450px;
 }

 But, it's overridden because of this in wicket-autocomplete.js:
 container.style.width=input.offsetWidth+'px';

 Looking at it in Firebug shows that element.style (which is the JS set
 style) is overriding the CSS that I included.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



Set width of auto complete text field?

2009-01-13 Thread Jeremy Thomerson
Is there a way to set the width of the popup list of choices for the auto
compete behavior (auto complete text field)?  I have tried using CSS, but
the problem is that wicket-autocomplete.js sets the width programmatically,
which overrides any CSS I use.  I don't see any hooks in the JS file to
override the JS method and set my own width, etc.  Any ideas?

I did this:
div.wicket-aa-container, div.wicket-aa {
width: 450px;
}

But, it's overridden because of this in wicket-autocomplete.js:
container.style.width=input.offsetWidth+'px';

Looking at it in Firebug shows that element.style (which is the JS set
style) is overriding the CSS that I included.

-- 
Jeremy Thomerson
http://www.wickettraining.com