Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ScrolledComposite won't wrap but supersize the composite

Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

I'm trying to create a ScrolledComposite inside a GridLayout and it freaks me out. It sizes the Composite so it can accomodate all components inside of it in one row that totally outgrows the space available. I checked the snippets and did exactly the same thing but it won't work!

Here is some code.

clientArea.width returns 1232 or something else that is huge ... too huge for me to think that it's correct.

The constructor of AuthorizedAreaComposite looks like this:

I don't know why this doesn't work. So please advise ..

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic