Hi,
this code I set in Showcase.java
I scroll to bottom and then I do browser refresh. And, oh wonder, after refresh it scrolls to the top. But how???
If I set exactly this code in HelloWorld example or any other examples, after refresh it remains at the bottom. It doesn't work!!! Why?
Also
1. I scroll to bottom
2. Browser refresh
It only correct works in Showce example. In another cases it remains at the bottom.
What is the secret of the Showcase?
I compare Showcase.gwt.xml and index.html with files from another projects, but they look identical.
Where should I looking for the solution?
Thanks in advance.
Best Regards.
-sipungora
this code I set in Showcase.java
Code:
// main.draw();
String numberStackHTML = "0";
for (int i = 1; i < 100; i++) {
numberStackHTML += "<br>" + i;
}
Canvas canvas2 = new Canvas();
canvas2.setWidth100();
canvas2.setHeight100();
final HTMLPane scroller = new HTMLPane();
scroller.setShowEdges(true);
scroller.setEdgeSize(5);
scroller.setCanDragReposition(true);
scroller.setCanDragResize(true);
scroller.setDragAppearance(DragAppearance.TARGET);
scroller.setContents(numberStackHTML);
scroller.setLeft(640);
scroller.setTop(10);
scroller.setWidth(100);
scroller.setHeight(100);
scroller.scrollTo(0, 0);
canvas2.addChild(scroller);
canvas2.draw();
If I set exactly this code in HelloWorld example or any other examples, after refresh it remains at the bottom. It doesn't work!!! Why?
Also
1. I scroll to bottom
2. Browser refresh
It only correct works in Showce example. In another cases it remains at the bottom.
What is the secret of the Showcase?
I compare Showcase.gwt.xml and index.html with files from another projects, but they look identical.
Where should I looking for the solution?
Thanks in advance.
Best Regards.
-sipungora