PDA

View Full Version : View seems to scroll to the bottom when screen tapped



wprater
16 Aug 2011, 12:12 PM
Having a strange issue when touch the screen the view will scroll to the very bottom (to a place where nothing is rendered) and Im not able to scroll back up to use the app.

Not sure how to better explain this and it's not happening on the examples, so there is something in my codebase allowing this to happen. Any ideas or questions for me?

Thanks.

jjerome
16 Aug 2011, 12:59 PM
Can you show examples of your code?

wprater
16 Aug 2011, 1:13 PM
I'll try to work up a smaller example later. There is too much code right now to put on the forum. Im using the Ext.Applicaiton approach to launch the Application.

Here is a snippet of the launch process (Coffeescript)



class playmark.IpmRequestorApp extends Ext.Application
name: 'IpmRequestor',


useLoadMask: true

launch: ->
@viewport = new Ext.Panel
fullscreen: true
# autoInitViewport: false
layout: 'card'
cardAnimation: 'slide'


items: [
new IpmRequestor.views.Login,
new IpmRequestor.views.MainTabpanel
]
# hidden: true

# Check if we have a healthy session
Ext.Ajax.request
url: "#{pm.ipm_cfg.IPM_PROXY_SERVICE_PATH}/sessions/healthy",

success: (response, opts) =>
responseJson = Ext.decode(response.responseText)

@viewport.show()
@handleSessionResponse responseJson

failure: (response, opts) =>
console.log('server-side failure with status code ' + response.status);
@viewport.show()

# Launch the App
new playmark.IpmRequestorApp