Scrollview content cut off at bottom

You must Login before you can answer or comment on any questions.

I have a problem with a scrollview in iOS.

I am building the following view hierarchy:

ScrollView - Container View (layout: vertical) --- several Labels --- several Buttons

But the last buttons at the bottom are not all visible or even cut off. As soon as I remove the Labels everything is fine. I've tried to put the label in a Container by itself, then added this label-container to the container and that to the scrollview, but still the buttons are not all visible.

The Labels all have height and width: Ti.UI.SIZE.

Any ideas why the Labels make problems when calculating the scrollview height?

I tried on 2.0.2GA and 2.0.1 SDK.

— asked 2 years ago by Tobias Reike
2 Comments
  • Ah, layout in my question is bad.

    The labels and buttons are added to the container view, which is added to the ScrollView.

    — commented 2 years ago by Tobias Reike

  • Also, as soon as I set a fixed height for the labels instead of auto, everythings fine.

    — commented 2 years ago by Tobias Reike

Your Answer

Think you can help? Login to answer this question!