iOS Question AutoScaleRate not full screen

bromie2008

Member
Licensed User
When i used AutoScaleRate to (1.0) its not fill my screen Left/Right have space?

AutoScaleRate(1.0)
AutoScaleAll
Panel1.HorizontalCenter(50%x)

upload_2016-11-14_14-12-31.png
 

Attachments

  • screeshot.jpg
    screeshot.jpg
    50.5 KB · Views: 247

klaus

Expert
Licensed User
Longtime User
I would do it that way.
Set both anchors of the background ImageView to BOTH, this you already have.
Add a transparent Panel and move all views onto this Panel and center it on the screen in the Script.
In Scripts-General add:
AutoScaleRate(0.5)
AutoScaleAll
Panel1.HorizontalCenter= 50%x
Panel1.VerticalCenter = 50%y

Then you can play with the AutoScaleRate.
With AutoScaleRate(0.7) you fill almost an iPad screen.

When you change the AutoScaleRate click on Run (F5) to see the result in the Anstract Designer.
upload_2016-11-17_8-46-50.png


Attached your modified project, I added a new layout file keeping yours for comparison.
 

Attachments

  • tbs_new1.zip
    396.5 KB · Views: 251
Last edited:
Upvote 0

bromie2008

Member
Licensed User
Thanks @klaus. But its seem like the scale not full screen on the scroller and the footer text. Attached here my screenshot on my iPad
 

Attachments

  • image-(2).jpg
    image-(2).jpg
    175.9 KB · Views: 288
Upvote 0

klaus

Expert
Licensed User
Longtime User
I was not aware that you really wanted these views full size horizontally.
You should reset the parent of lblScroll back to Main and keep the horizontal anchor with BOTH.
You'll need to reposition lblScroll vertically in the Script according to the views above and below.
 
Upvote 0

bromie2008

Member
Licensed User
Thanks a lot @klaus & @Erel for support. It work! ;)

'All variants script
AutoScaleRate(0.8)
AutoScaleAll
Panel1.HorizontalCenter= 50%x
Panel1.VerticalCenter = 50%y
lblScroll.VerticalCenter = 57%y
lblFooter.Bottom = 100%y
 
Upvote 0
Top