Monday, August 1, 2011

StackLayoutPanel: How to determine the height of the header-widget?

Hello,

I am using a StackLayoutPanel. The problem I have is that the text for each header gets created dynamically and I don't know how to figure out how many lines it is long and what the resulting size of the header-widget is. Right now I am counting the characters in the text, but that is really a more than dirty hack. Any ideas on that issue? I only found information on resizing the StackLayoutPanel itself based on the data it contains.
Any tipps/hints are appreciated!

Regards, David

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/F3Zw54KhkBMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment