我有一个 GWT 披露面板,当单击披露按钮时,它在无限循环中的打开和关闭状态之间进行动画处理。但这似乎只发生在 Chrome 浏览器中,而不是 Safari 或 Firefox。有谁知道这是关于什么的?
DisclosurePanel disclosurePanel = new DisclosurePanel("Reset password");
disclosurePanel.setAnimationEnabled(true);
disclosurePanel.setContent(passwordGrid);
disclosurePanel.addOpenHandler(new OpenHandler<DisclosurePanel>() {
public void onOpen(OpenEvent<DisclosurePanel> event) {
saveButton.setEnabled(false);//enable on close or after verifying current password
}
});
disclosurePanel.addCloseHandler(new CloseHandler<DisclosurePanel>() {
public void onClose(CloseEvent<DisclosurePanel> event) {
saveButton.setEnabled(true);
}
});