scrollView not working well

I don’t know why it doesn’t change here is my problem

whenever I change my scrollheight to 0 - 10000

the scrolling doesn’t change why? I’ve done this before but it works well i don’t know why it doesn’t work now

Images are uploaded, Image 1 is 0 scrollheight

Image 2 is 10000 scrollheight

here is my code 

 local function scrollListener( event ) local phase = event.phase if ( phase == "began" ) then print( "Scroll view was touched" ) elseif ( phase == "moved" ) then print( "Scroll view was moved" ) elseif ( phase == "ended" ) then print( "Scroll view was released" ) end -- In the event a scroll limit is reached... if ( event.limitReached ) then if ( event.direction == "up" ) then print( "Reached top limit" ) elseif ( event.direction == "down" ) then print( "Reached bottom limit" ) elseif ( event.direction == "left" ) then print( "Reached left limit" ) elseif ( event.direction == "right" ) then print( "Reached right limit" ) end end return true end local scrollView = widget.newScrollView { top = 50, left = 0, width = contentWidth, height = contentHeight-100, scrollWidth = 0, scrollHeight = 10000, backgroundColor = {.5,.5,.5}, horizontalScrollDisabled = true, listener = scrollListener } --Sign Up Labels local lblUsername = display.newText("\*Username :", 0,0, native.font,16) lblUsername.x = contentWidth/11 lblUsername.anchorX = 0 lblUsername.y = 0+16 lblUsername:setFillColor(0,0,0) local lblPassword = display.newText("\*Password :", 0,0, native.font,16) lblPassword.x = contentWidth/11 lblPassword.y = Y \* 1+16 lblPassword.anchorX = 0 lblPassword:setFillColor(0,0,0) local lblLastName = display.newText("\*Last Name :", 0,0, native.font,16) lblLastName.x = contentWidth/11 lblLastName.y = Y \* 2+16 lblLastName.anchorX = 0 lblLastName:setFillColor(0,0,0) local lblFirstName = display.newText("\*First Name :", 0,0, native.font,16) lblFirstName.x = contentWidth/11 lblFirstName.y = Y \* 3+16 lblFirstName.anchorX = 0 lblFirstName:setFillColor(0,0,0) local lblMiddleName = display.newText("Middle Name :", 0,0, native.font,16) lblMiddleName.x = contentWidth/11 lblMiddleName.y = Y \* 4+16 lblMiddleName.anchorX = 0 lblMiddleName:setFillColor(0,0,0) local lblBday = display.newText("Birthday :", 0,0, native.font,16) lblBday.x = contentWidth/11 lblBday.y = Y \* 5+16 lblBday.anchorX = 0 lblBday:setFillColor(0,0,0) local lblEmail = display.newText("\*Email :", 0,0, native.font,16) lblEmail.x = contentWidth/11 lblEmail.y = Y \* 6+16 lblEmail.anchorX = 0 lblEmail:setFillColor(0,0,0) local lblContact = display.newText("\*Contact No. :", 0,0, native.font,16) lblContact.x = contentWidth/11 lblContact.y = Y \* 7+16 lblContact.anchorX = 0 lblContact:setFillColor(0,0,0) local lblAddress = display.newText("Address :", 0,0, native.font,16) lblAddress.x = contentWidth/11 lblAddress.y = Y \* 8+16 lblAddress.anchorX = 0 lblAddress:setFillColor(0,0,0) local lblTin = display.newText("TIN :", 0,0, native.font,16) lblTin.x = contentWidth/11 lblTin.y = Y \* 9+16 lblTin.anchorX = 0 lblTin:setFillColor(0,0,0) local lblGender = display.newText("Gender :", 0,0, native.font,16) lblGender.x = contentWidth/11 lblGender.y = Y \* 10+16 lblGender.anchorX = 0 lblGender:setFillColor(0,0,0) local lblCiti = display.newText("Citizenship :", 0,0, native.font,16) lblCiti.x = contentWidth/11 lblCiti.y = Y \* 11+16 lblCiti.anchorX = 0 lblCiti:setFillColor(0,0,0) local lblCivil = display.newText("Civil Status :", 0,0, native.font,16) lblCivil.x = contentWidth/11 lblCivil.y = Y \* 12+16 lblCivil.anchorX = 0 lblCivil:setFillColor(0,0,0) scrollView:insert(lblUsername) scrollView:insert(lblPassword) scrollView:insert(lblLastName) scrollView:insert(lblFirstName) scrollView:insert(lblMiddleName) scrollView:insert(lblBday) scrollView:insert(lblEmail) scrollView:insert(lblContact) scrollView:insert(lblAddress) scrollView:insert(lblTin) scrollView:insert(lblGender) scrollView:insert(lblCiti) scrollView:insert(lblCivil) sceneGroup:insert(scrollView)

Not sure exactly what it is that you are asking?

I have never actually used the scrollHeight/scrollWidth I just use paddingTop, paddingBottom etc. and find it works better to just let it auto-size with those values.

I believe you can call scrollView:setScrollHeight(100000) (right after your last sceneGroup:insert(scrollview) line) to resolve your scrollHeight issue last time I played with the scroll view the scrollHeight/Width settings had no effect in the “init” only after all the content had been added to the scrollview but that was some time ago.

Not sure exactly what it is that you are asking?

I have never actually used the scrollHeight/scrollWidth I just use paddingTop, paddingBottom etc. and find it works better to just let it auto-size with those values.

I believe you can call scrollView:setScrollHeight(100000) (right after your last sceneGroup:insert(scrollview) line) to resolve your scrollHeight issue last time I played with the scroll view the scrollHeight/Width settings had no effect in the “init” only after all the content had been added to the scrollview but that was some time ago.