Is there an event for when scrollbars are added to a ScrollPanel? I have a HorizontalPanel inside a ScrollPanel. The HorizontalPanel gets DecoratorPanels added to it. After enough DecoratorPanels have been added to the HorizontalPanel the ScrollPanel's horizontal scrollbar appears. Perfect!
Except for one thing ... the scrollbar covers the bottom border of the DecoratorPanels. I thought if there was an event fired when the scrollbar appeared I could shrink the height of the DecoratorPanels to make room for the scrollbar but I haven't found one yet. I added a ScrollListener but it only receives events when the scrollbar is moved, not when it appears. I guess I could check each time I add a DecoratorPanel but there is no ScrollPanel method to tell you if the scrollbars are visible or not. I guess my next option is to see if getHorizontalScrollPosition() changes when the scrollbar appears? Worst case, is to calculate the width of all DecoratorPanels (with spacing) and compare it to the width of the ScrollPanel? Any other suggestions? Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
