Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

hover opacity not working for Img

$
0
0
I am using SmartGWT 5.0-p20141231.

Here is the test case:
Code:

HStack layout = new HStack();
layout.setBackgroundColor("black");
Img img = new Img("Classifier/log-out-icon.png", 16, 16);
img.setOpacity(50);
img.setShowHover(true);
img.setHoverOpacity(100);
layout.addMember(img);
layout.draw();

img.setOpacity(50) works by showing the 50% opacity.

However, hovering over the image has no effect on the opacity. It should change the opacity to 100%.

I’ve attached the image file.

Attached Images
File Type: png log-out-icon.png (1.1 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles