GWT DeckLayoutPanel动画在Chrome上进入无限循环
以下代码在最新(24.0.1312.52)版本的Chrome上生成无限动画。同样的代码在FF/IE中运行良好GWT DeckLayoutPanel动画在Chrome上进入无限循环,gwt,Gwt,以下代码在最新(24.0.1312.52)版本的Chrome上生成无限动画。同样的代码在FF/IE中运行良好 public class Test implements EntryPoint { @Override public void onModuleLoad() { DeckLayoutPanel deck = new DeckLayoutPanel(); deck.setWidth("100%"); deck.setHeight("100px"); deck
public class Test implements EntryPoint {
@Override
public void onModuleLoad() {
DeckLayoutPanel deck = new DeckLayoutPanel();
deck.setWidth("100%");
deck.setHeight("100px");
deck.setAnimationDuration(3000);
deck.setWidget(new Label("Hello world"));
RootLayoutPanel.get().add(deck);
}
}
还有其他人也遇到过这个问题吗?这是GWT2.4中的一个错误,因为Chrome中的
requestAnimationFrame
现在使用亚毫秒计时器。这已在GWT 2.5.0中修复
请参阅和,以及其他。这是GWT2.4中的一个错误,因为Chrome中的
requestAnimationFrame
现在使用亚毫秒计时器。这已在GWT 2.5.0中修复
除其他外,请参见和。Thomas完全正确,这是GWT2.4中的一个错误,在GWT2.5中是正确的 如果您仍在使用GWT2.4,那么通过以下对话可以解决最新chrome版本中出现的许多问题 自由贸易协定: 解决方法的摘要是将以下内容添加到.gwt.xml文件中:
Thomas完全正确,这是GWT2.4中的一个错误,在GWT2.5中是正确的 如果您仍在使用GWT2.4,那么通过以下对话可以解决最新chrome版本中出现的许多问题 自由贸易协定: 解决方法的摘要是将以下内容添加到.gwt.xml文件中:
<!-- TEMP FIX UNTIL GOING TO GWT 2.5 -->
<!-- Fallback implementation, based on a timer -->
<replace-with class="com.google.gwt.animation.client.AnimationSchedulerImplTimer">
<when-type-is class="com.google.gwt.animation.client.AnimationScheduler"/>
<any>
<when-property-is name="user.agent" value="ie6"/>
<when-property-is name="user.agent" value="ie8"/>
<when-property-is name="user.agent" value="ie9"/>
<when-property-is name="user.agent" value="safari"/>
<when-property-is name="user.agent" value="opera"/>
</any>
</replace-with>
<!-- Implementation based on mozRequestAnimationFrame -->
<replace-with class="com.google.gwt.animation.client.AnimationSchedulerImplMozilla">
<when-type-is class="com.google.gwt.animation.client.AnimationScheduler"/>
<when-property-is name="user.agent" value="gecko1_8"/>
</replace-with>
<!-- ************* END ************* -->