Scrollview content cut off at bottom

I have a problem with a scrollview in iOS.

I am building the following view hierarchy:


  • 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 3 years ago by Tobias Reike
  • Ah, layout in my question is bad.

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

    — commented 3 years ago by Tobias Reike
  • Also, as soon as I set a fixed height for the labels instead of auto, everythings fine.

    — commented 3 years ago by Tobias Reike

0 Answers