Hi Loott, You should be able to get the split panel to position it's splitter when its tab opens using a TabListener and calling sp.setSplitPosition(..) from onTabSelected(). You only need to do this once, I believe. After that the split panel will remember its splitter position and re-open properly. Clunky because you'd have too keep some boolean variable to indicate the SP has been opened, but I think it would work. If I'm wrong and it doesn't remember, then you could save the percent split position value and use it for repeated calls from onTabSelected(..).
I had a look at the source for the split panels the other day when Ian posted about this, and as I recall the root of the problem is that HSP/ VSP have a onLoad() method that issues a DeferredCommand to size the left and right containers and set the split position. If the Sp is not visible it has no height or width to work with, so split position is always zero. I can't find an issue raised for this on the issue tracker, although I think it is briefly mentioned on issue 1599 http://code.google.com/p/google-web-toolkit/issues/detail?id=1599&q=split%20panel regards gregor On Aug 27, 9:02 am, loott <[EMAIL PROTECTED]> wrote: > Hello Ian, > > thank you for your answer. It's disapointing to know i can't add a > SplitPanel inside a TabPanel :( as it's a very common user interface > case. > > I suppose i will have to add the splitpanel to RootPanel for example > and make it visible or invisible when the tab is clicked or use the > deferred commands as you say or something like that... > > It's not a good solution concerning the design of the application, do > you know any other cleaner solution? Do you know if there's a interest > in GWT to allow this or is it assumed that this should be the > behaviour of SplitPanels? > > Thank you > > Best Regards > > Jorge --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
