# Scaling at runtime

**URL:** <https://forum.xojo.com/t/scaling-at-runtime/43173>\
**Category:** iOS\
**Created:** [April 25, 2018, 11:12am UTC](https://forum.xojo.com/t/scaling-at-runtime/43173 "2018-04-25T11:12:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Fitzgibbons](https://forum.xojo.com/user_avatar/forum.xojo.com/martin_fitzgibbons/32/259_2.png) [@Martin\_Fitzgibbons](https://forum.xojo.com/u/Martin_Fitzgibbons)\
**Post date:** [April 25, 2018, 11:12am UTC](https://forum.xojo.com/t/scaling-at-runtime/43173/1 "2018-04-25T11:12:05Z")

</div>

I have a couple of small canvases holding some icon images in them which look fine on iPhone.

How do I scale the canvas to look appropriate on iPad?

---

<div class="post-metadata">

**Author:** ![Jason\_Tait](https://forum.xojo.com/user_avatar/forum.xojo.com/jason_tait/32/5896_2.png) [@Jason\_Tait](https://forum.xojo.com/u/Jason_Tait)\
**Post date:** [April 25, 2018, 12:17pm UTC](https://forum.xojo.com/t/scaling-at-runtime/43173/2 "2018-04-25T12:17:27Z")

</div>

If you want to change the height or width or any of the auto-layout constraints on your canvases, use [iOSLayoutConstraint](http://developer.xojo.com/ioslayoutconstraint) to create a reference to the constraint(s) you want to change and then change the property you want, eg the offset.

---

<div class="post-metadata">

**Author:** ![Martin\_Fitzgibbons](https://forum.xojo.com/user_avatar/forum.xojo.com/martin_fitzgibbons/32/259_2.png) [@Martin\_Fitzgibbons](https://forum.xojo.com/u/Martin_Fitzgibbons)\
**Post date:** [April 25, 2018, 1:24pm UTC](https://forum.xojo.com/t/scaling-at-runtime/43173/3 "2018-04-25T13:24:39Z")

</div>

Thanks Jason, I thought that was above my pay grade but it strangely makes sense. Cheers Martin

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:11pm UTC](https://forum.xojo.com/t/scaling-at-runtime/43173/4 "2020-10-29T19:11:33Z")

</div>


