Thanks for the response. I never found a good solution, but I've found a decent looking result by dynamically increasing the width.
On Sep 16, 7:16 pm, Chad <[email protected]> wrote: > Perhaps a different approach may work better (and more efficiently). > What if you only add the child widgets that were visible (or maybe one > or two extra)? Then, as you press the buttons to scroll, just add and > remove the child widgets as needed. You could probably do that with a > single panel instead of two. You could keep a List of child widgets. > Keep an index of the one in focus and load and unload as needed. > Otherwise, I suspect you will need to add the getOffsetWidth of each > child plus the width of whatever margin you have between each and set > the inner panel size directly. It sounds like you already tried that, > but I'm not sure why it wouldn't be an exact thing for you. > > HTH, > Chad > > On Sep 16, 4:18 pm,badgerduke<[email protected]> wrote: > > > Hello: > > > I have a HorizontalPanel whose parent of an AbsolutePanel. The > > AbsolutePanel has a fixed with of 800px but the HorizontalPanel is > > potentailly much longer, as long as it needs to be to house all of the > > needed child widgets which is variable. I "slide" the HorizontalPanel > > under the AbsolutePanel using navigation buttons so that only part of > > the HorizontalPanel is visible at one time. The problem is this: > > Upon populating the HorizontalPanel, it will expand up to a certain > > width, maybe 1200-1300px, then it will stop and squish together and > > clip the child widgets. I can sort of solve the problem by > > dynamically increasing the width based on the width of each child but > > this is inexact and looks bad. Is there a certain type of panel I can > > use which can automatically resize itself beyond the 1200px-1300px > > limit? > > > Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
