ScrollPanel setVerticalScrollPosition(int) ne marche pas
Bonjour à tous,
Je ne trouve aucun moyen de positionner ma ScrollPanel là où je souhaite. Les méthodes scrollPanel.setVerticalScrollPosition(int) et scrollPanel.getElement().setScrollTop(int) ne semble pas marcher avec aucun navigateur même après compilation de mon code GWT.
Est-ce que quelqu'un a trouvé une solution en gardant les librairies standard de GWT ?
Je poste à tout hasard un extrait de mon fichier ui.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:style>
.panel {
background-color: ivory;
}
.scrollPanel {
width: 830px;
height: 630px;
}
</ui:style>
<g:VerticalPanel styleName="{style.panel}">
<g:HorizontalPanel>
<g:HTMLPanel width="100px"> </g:HTMLPanel>
<.../>
</g:HorizontalPanel>
<g:ScrollPanel styleName="{style.scrollPanel}" field="scrollPanel">
<g:HorizontalPanel width="100%" height="100%">
<g:AbsolutePanel width="99px" height="800px">...</g:AbsolutePanel>
<g:AbsolutePanel height="800px" width="700px">...</g:AbsolutePanel>
</g:HorizontalPanel>
</g:ScrollPanel>
</g:VerticalPanel>
</ui:UiBinder> |