0
我正在使用Gwt,GWT彈出式面板是透明的?
我有一個標籤。在onClick
事件中有一個,增加了tree
。 問題是popupPanel
是透明的。
當執行popup.show
時,通過popupPanel
看到popupPanel
後面的panel
。如何避免這一點。
.
.
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;
}