Thx man. It really solved my ScrollPanel problem. On Monday 30 March 2009 15:45:43 Isaac Truett wrote: > You might find some useful suggestions here: > http://groups.google.com/group/Google-Web-Toolkit/web/gwt-discussion-group- >charter > > > > > On Sun, Mar 29, 2009 at 3:42 PM, nicanor.babula <[email protected]> > > wrote: > > Come on people. > > > > It's been 3 days since my post. No one knows the answer? Very well > > then. If I ask HOW CAN I ADD A GOD DAMNED BUTTON TO MY PAGE THAT DOES > > AN EXCREMENT WHEN I CLICK ON IT? I think I would have received > > thousands of answers in minutes... C'mon people. The people in this > > community are much more experienced than that. If not.... What the > > "<reproducing act>" is this group useful for? Teaching noobs that > > rather than searching for their problem's answer they could simply > > spare a community's time for their noob problem? C'mon. Where is the > > linux/bsd/open-source-product forum attitude? > > > > At least an answer like: "I don't know man... I never had any problem > > with scoll panels". It would be much better than ignoring some tough > > question.... > > > > Feel free to ban me. I will take it like you felt so incompetent that > > you would rather ban me than deface this group's incompetens. It's the > > same for not posting this answer at all.. Blogs will write about it > > too... > > > > PS: > > Oh and what about the people posting in Spanish (or any other > > language) rather than english in an international mailing list? If I > > mistake with this post more then them, then this group is useless. > > > > PPS: > > I know this is a flaming post, but please spare answers like "Hey it > > was week-end time" or "you posted at 2AM my local time" or "Your > > problem is not our problem". > > > > PPPS: > > The first time I had to flame in order to get some help... > > > > Thank you, > > Cristian Nicanor Babula. > > > > > > On Mar 26, 12:25 pm, "nicanor.babula" <[email protected]> > > > > wrote: > >> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
