iOS Question Inside a scrollview appears scaled??

Levisvv

Member
Licensed User
Longtime User
I have a page that I added 2 scrollviews to so I can create my own drop-down menu selection list. The forms are almost identical, in fact one is a copy of the other, but one if them looks normal, while the other appears to have its content approx. 60% in size?? I cannot see why..

Private LocationPicker As ScrollView
Private IndustryPicker As ScrollView

LocationPicker.Panel.LoadLayout("ToPickLocations")
IndustryPicker.Panel.LoadLayout("ToPickIndustries")

IndustryPicker.contentwidth = IndustryPicker.width
IndustryPicker.ContentHeight = 1320
LocationPicker.contentwidth = LocationPicker.width
LocationPicker.ContentHeight = 340

Does anybody have any thoughts why the 'LocationPicker' is scaled???
It is even if I use this code:

LocationPicker.Panel.LoadLayout("ToPickIndustries")
IndustryPicker.Panel.LoadLayout("ToPickIndustries")

IndustryPicker.contentwidth = IndustryPicker.width
IndustryPicker.ContentHeight = 1320
LocationPicker.contentwidth = LocationPicker.width
LocationPicker.ContentHeight = 1320


I am stumped...
 

Levisvv

Member
Licensed User
Longtime User
I only did that to troubleshoot and try to see if the issue is caused by layout or not - it is not.
 
Upvote 0

Ed Brown

Active Member
Licensed User
Longtime User
Hi @Levisvv - this might have something to do with 'Variants' in the designer. Check both layouts and ensure that both have the same 'Variants'.

I've had to work around this issue before and create a variant to match the device I was developing with.
 
Upvote 0

Levisvv

Member
Licensed User
Longtime User
here is my project with the layouts - I hope it works; I removed all other layouts and unrelated code.
If you try this and click on the industry button, the layout that loads is normal, but if you click the other button labelled locations, the layout loads much smaller but it shouldnt..??
heres the project file rar'ed: http://www.filedropper.com/scaleissue
 
Upvote 0

Ed Brown

Active Member
Licensed User
Longtime User
Hi @Levisvv

In the layouts, try commenting out the 'AutoScallAll' line in the 'Script-General' tab. I've had issues with this when loading a layout into a scrollview or panel. Commenting out the line of code fixed my issue.
 
Upvote 0

Levisvv

Member
Licensed User
Longtime User
that sort of worked.
I commented that out on both layouts and they are now the same, but now they both appear to be scaled at approx. 60%
How can I force the layout scale to 100% ??
 
Upvote 0
Top