我正在使用 Gwt ,
我有一个标签。在onClick
Event 上有一个PopupPanel
, Whretree
被添加。问题是它popupPanel
是透明的。
popup.show
执行的时候,panel
后面popupPanel
就被看穿了popupPanel
。如何避免这种情况。
.
.
lblClass.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
getPopupPanel();
}
});
private PopupPanel getPopupPanel(){
popupPanel = new PopupPanel();
popupPanel.setStyleName("documentClass-PopPup");
int x =lblClass.getAbsoluteLeft();
int y = lblClass.getAbsoluteTop();
popupPanel.setPopupPosition(x, y+20);
popupPanel.add(getCustomPropertiesTree());
popupPanel.show();
return popupPanel;
}
CSS
.documentClass-PopPup {
margin: 2px 1px 1px;
padding: 2px 1px 1px;
border-top: thick;
border-right: medium;
border-bottom: medium;
border-left: medium;
font-size: 10pt;
letter-spacing: normal;
}