I have recently posted my question on developer.appcelerator.com concerning an issue I am facing.
Link to my question
=======================================================================
I am encountering a problem with resizing the scrollview when the device orientation changes.
Please review the code snippet below which demonstrates how I handle the scrollView and orientation:
Code snippet for reference
Within the function 'libraryView', we create a window where we add titles and views to the scrollview, causing it to expand accordingly. We also have an orientation function that adjusts the content height/width of the scrollview upon rotation. Kindly examine this function closely.
The specific issue I am facing is as follows: Initially, when opening the window, everything looks fine with only vertical scrolling available. However, upon switching to Landscape mode, the display remains accurate with just vertical scrolling. Yet, when switching back to Portrait orientation, both vertical and horizontal scrolls are displayed inexplicably. Despite manually setting the content width to 320, the undesired horizontal scroll persists. I am unsure why this is happening.
If anyone has a solution or suggestion to offer, I would greatly appreciate it. Thank you in advance!