我有一个GWT Disclosure面板,当点击公开按钮时,它在无限循环中在打开和关闭状态之间进行动画制作。但这似乎只发生在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);
}
});
答案 0 :(得分:0)
这是针对最新Chrome浏览器报告的问题 - http://code.google.com/p/chromium/issues/detail?id=158910
相关信息 - https://code.google.com/p/google-web-toolkit/source/detail?spec=svn10989&r=10989
其他Stackoverflow答案 - GWT DeckLayoutPanel animation goes into infinite loop on Chrome