Orion-
22 May 2008, 6:19 AM
Hi,
my page with all my widgets doesn't fit on the screen so the browser adds a scrollbar. In this case, the tooltips for PagingToolBar are not displayed in the correct location. I have included a test case below. The important thing is the height of the table. Make the browser window small enough so that you have to scroll to reach the PagingToolBar. The tooltips are then displayed way above the buttons, depending on how you had to scroll.
This is for beta 3, but I already saw this problem in beta 2.
public void onModuleLoad() {
LayoutContainer main = new LayoutContainer();
TableColumn[] columns = {
new TableColumn( "name", "Name", .5f),
new TableColumn( "description", "Description", .5f),
};
TableColumnModel cm = new TableColumnModel(columns);
final Table<RowSelectionModel> table = new Table<RowSelectionModel>(cm);
table.setBorders(false);
PagingToolBar toolBar = new PagingToolBar(10);
ContentPanel panel = new ContentPanel();
panel.setHeight(600);
panel.setFrame(true);
panel.setLayout(new FitLayout());
panel.add(table);
panel.setBottomComponent(toolBar);
main.add(panel);
main.layout();
RootPanel.get().add(main);
}
my page with all my widgets doesn't fit on the screen so the browser adds a scrollbar. In this case, the tooltips for PagingToolBar are not displayed in the correct location. I have included a test case below. The important thing is the height of the table. Make the browser window small enough so that you have to scroll to reach the PagingToolBar. The tooltips are then displayed way above the buttons, depending on how you had to scroll.
This is for beta 3, but I already saw this problem in beta 2.
public void onModuleLoad() {
LayoutContainer main = new LayoutContainer();
TableColumn[] columns = {
new TableColumn( "name", "Name", .5f),
new TableColumn( "description", "Description", .5f),
};
TableColumnModel cm = new TableColumnModel(columns);
final Table<RowSelectionModel> table = new Table<RowSelectionModel>(cm);
table.setBorders(false);
PagingToolBar toolBar = new PagingToolBar(10);
ContentPanel panel = new ContentPanel();
panel.setHeight(600);
panel.setFrame(true);
panel.setLayout(new FitLayout());
panel.add(table);
panel.setBottomComponent(toolBar);
main.add(panel);
main.layout();
RootPanel.get().add(main);
}