attempt to fix header logo sometimes not being display.
This commit is contained in:
parent
7a6869a0d7
commit
8301465c67
|
@ -39,11 +39,11 @@ import org.zkoss.zul.Vbox;
|
||||||
* @version $Revision: 0.20 $
|
* @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 static final long serialVersionUID = -2351317624519209484L;
|
||||||
|
|
||||||
private Image image = new Image();
|
private Image image;
|
||||||
|
|
||||||
public HeaderPanel()
|
public HeaderPanel()
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,7 @@ public class HeaderPanel extends Panel implements EventListener
|
||||||
|
|
||||||
UserPanel userPanel = new UserPanel();
|
UserPanel userPanel = new UserPanel();
|
||||||
|
|
||||||
image.setSrc(ThemeManager.getSmallLogo());
|
image = new Image(ThemeManager.getSmallLogo());
|
||||||
image.addEventListener(Events.ON_CLICK, this);
|
image.addEventListener(Events.ON_CLICK, this);
|
||||||
image.setStyle("cursor: pointer;");
|
image.setStyle("cursor: pointer;");
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ public class HeaderPanel extends Panel implements EventListener
|
||||||
{
|
{
|
||||||
AboutWindow w = new AboutWindow();
|
AboutWindow w = new AboutWindow();
|
||||||
w.setPage(this.getPage());
|
w.setPage(this.getPage());
|
||||||
w.doModal();
|
w.doHighlighted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue