attempt to fix header logo sometimes not being display.

This commit is contained in:
Heng Sin Low 2012-03-02 15:13:43 +08:00
parent 7a6869a0d7
commit 8301465c67
1 changed files with 4 additions and 4 deletions

View File

@ -39,11 +39,11 @@ import org.zkoss.zul.Vbox;
* @version $Revision: 0.20 $
*/
public class HeaderPanel extends Panel implements EventListener
public class HeaderPanel extends Panel implements EventListener<Event>
{
private static final long serialVersionUID = -2351317624519209484L;
private Image image = new Image();
private Image image;
public HeaderPanel()
{
@ -57,7 +57,7 @@ public class HeaderPanel extends Panel implements EventListener
UserPanel userPanel = new UserPanel();
image.setSrc(ThemeManager.getSmallLogo());
image = new Image(ThemeManager.getSmallLogo());
image.addEventListener(Events.ON_CLICK, this);
image.setStyle("cursor: pointer;");
@ -98,7 +98,7 @@ public class HeaderPanel extends Panel implements EventListener
{
AboutWindow w = new AboutWindow();
w.setPage(this.getPage());
w.doModal();
w.doHighlighted();
}
}