widget newScrollView

Hi,

I am a newbie to Corona SDK.

I’m implementing scrollview to display text content using widget.newScrollView. But while scrolling the text is showing up the top limit set for the scrollview but bottom part is fine.
I have tried almost all properties but of no help

I’m using the following code to declare the scrollview:
[lua]local scrollView = widget.newScrollView{y = 150, x = 160, topPadding = 100, bottomPadding = -100, height=450, width = 700,maskFile=“scrollView.png” }[/lua] [import]uid: 109064 topic_id: 19508 reply_id: 319508[/import]

Vimal,
A screenshot would help to understand the issue… try adding top attribute to the scrollview. It might solve the problem

[code]
pickerWheel = widget.newPickerWheel{

id=“pickerWheel”,
font=“Helvetica-Bold”,
top=210,
columns=columnData
}

[/code] [import]uid: 84539 topic_id: 19508 reply_id: 75326[/import]

Just deleted the dupe of this. Please only post a thread once.

Peach :slight_smile: [import]uid: 52491 topic_id: 19508 reply_id: 75430[/import]

Hi Bejoy,

This is the screenshot.
http://imageshack.us/photo/my-images/195/defect.png

The following code I am using to add paragraph on the scrollView. Could you help if I’m doing something wrong here.

[lua]reviewQuestionText = display.newParagraph("", 60, format)
reviewQuestionText.x = paragraphX
reviewQuestionText.y = paragraphY*questionCount +30
scrollView:insert(reviewQuestionText)[/lua]

The newParagraph(text) which I am adding is going above the scrollView but in the bottom its OK
Setting ‘top’ takes same as the value ‘y’. [import]uid: 109064 topic_id: 19508 reply_id: 75435[/import]