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:

1
local scrollView = widget.newScrollView{y = 150, x = 160, topPadding = 100, bottomPadding = -100, height=450, width = 700,maskFile="scrollView.png" }

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

1
2
3
4
5
6
7
pickerWheel  = widget.newPickerWheel{
                                
                id="pickerWheel",
                font="Helvetica-Bold",
                top=210,
                columns=columnData
        }

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

Peach :)

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.

1
2
3
4
reviewQuestionText = display.newParagraph("", 60, format)
reviewQuestionText.x = paragraphX
reviewQuestionText.y = paragraphY*questionCount +30
scrollView:insert(reviewQuestionText)
views:1900 update:2011/12/28 9:26:54
corona forums © 2003-2011