Hello everyone. I have this situation:
_______________________________________ | ScrollPanel | | __________________________________ | | | AbsolutePanel | | | | | | | | ___________ | | | | | cell selector| | | | | |__________ | | | | | | | | | | | | |_________________________________| | |______________________________________| When the users clicks the absolute panel (which has a background image simulating a grid) the cell selector is moved in order to visually- simulate the cell selection. It works fine on firefox and IE, but on webkit-based browsers when the ScrollPanel has been scrolled and I click on the absolutePanel, it automatically scrolls back the scrollPanel to [0,0]. Any ideas? It is a bug in GWT or I must compute the [top,left] of the cell selector in a different way? Here is how I compute the cell selector's top and left: [code] public void clickAction(Event event){ int x = DOM.eventGetClientX(event) - DOM.getAbsoluteLeft(getElement()) + DOM.getElementPropertyInt(getElement(), "scrollLeft") + Window.getScrollLeft(); int y = DOM.eventGetClientY(event) - DOM.getAbsoluteTop(getElement()) + DOM.getElementPropertyInt(getElement(), "scrollTop") + Window.getScrollTop(); Calendario.eventsContainer.setWidgetPosition (Calendario.eventAreaSelector, x - (x % CalUtils.getDayWidth()), y - (y % CalUtils.UNIT_HEIGHT)); } [/code] Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---