PDA

View Full Version : rc2 - images PNG in button when disable appears incorrect



fother
1 Jul 2009, 10:11 AM
this problem appears in rc2 and with images PNG; with GIF its ok

in rc1 this tested case work fine

tested in hosted mode win vista

look the attachment to see the problem

code example


public void onModuleLoad() {

Button button1 = new Button("button disable png", Examples.ICONS.connect());
button1.disable();

Button button2 = new Button("button enable png", Examples.ICONS.connect());

Button button3 = new Button("button disable gif", Examples.ICONS.add16());
button3.disable();

Button button4 = new Button("button enable gif", Examples.ICONS.add16());

ToolBar toolBar = new ToolBar();
toolBar.add(button1);
toolBar.add(button2);
toolBar.add(button3);
toolBar.add(button4);

ContentPanel panel = new ContentPanel();
panel.setSize(600, 200);
panel.setTopComponent(toolBar);

RootPanel.get().add(panel);
}

fother
6 Jul 2009, 11:39 AM
this problem appears too in 2.0 release

sven
6 Jul 2009, 11:40 AM
There is no need to bump threads after a couple of days. As this thread is not marked as fixed it was not yet fixed.

yumusakg
2 Feb 2011, 8:16 AM
i have the same problem in 3.2.

Is there a solution?

Mpalle
14 Mar 2011, 4:30 AM
Same problem here - but only in IE.