View Full Version : How to use IconButton correctly?

13 Jun 2008, 12:07 PM
It seems the behavior of IconButton has changed since myGWT times.

I have a code:
IconButton filterTypeToggle = new IconButton("filter-type-toggle-startswith");
where filter-type-toggle-startswith is defined as follows:
.filter-type-toggle-contains {
background-image: url(images/filter_type_toggle_contains.jpg) !important;

But on the screen I see the button with the X (close(?) button) with just a tiny bit of my image showing underneath.
What am I doing wrong here?