PDA

View Full Version : [DUP] Tooltips in wrong position when scrolling



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);
}

romero83
15 Apr 2009, 1:07 AM
I have the same bug in my application.
I use GXT 1.2.3.

In my application there is a FormPanel, wherein some LayoutContainer to achive ColumnLayout (float) effect.
Here some screenshots:
http://kepfeltoltes.pirateclub.hu/pics/tooltipbug_1.gif
You can see the scrollbar, that is on top and the tooltip position, which appear correctly when I point the mouse over the "New model:" input.

And here is when I scrool down:

http://kepfeltoltes.pirateclub.hu/pics/tooltipbug_2.gif

I also point the mouse over the "New model:" input, but suddenly the tooltip position went above.

sven
15 Apr 2009, 4:04 AM
This was already reported before and is already fixed.