{"id":1757,"date":"2018-06-26T16:14:45","date_gmt":"2018-06-26T20:14:45","guid":{"rendered":"https:\/\/toddbaginski.com\/blog\/?p=1757"},"modified":"2018-06-26T16:14:45","modified_gmt":"2018-06-26T20:14:45","slug":"how-to-make-powerapps-fill-the-entire-screen","status":"publish","type":"post","link":"https:\/\/toddbaginski.com\/blog\/how-to-make-powerapps-fill-the-entire-screen\/","title":{"rendered":"HOW TO: Make PowerApps Fill The Entire Screen"},"content":{"rendered":"<p>Ever since the Onboarding Tasks and <a href=\"https:\/\/aka.ms\/meetingcapture\" target=\"_blank\" rel=\"noopener\">Meeting Capture<\/a> PowerApps sample templates were released people have asked me, &#8216;How did you get the PowerApps to fill the entire web browser and look good?&#8217;.<\/p>\n<p>It&#8217;s actually quite simple.\u00a0 \ud83d\ude42<\/p>\n<p>Let&#8217;s use the Meeting Capture PowerApps sample template as an example.<\/p>\n<p>When you download the Meeting Capture PowerApps sample template, you will notice it fills the entire web browser, like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1759\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full.png\" alt=\"\" width=\"1921\" height=\"1089\" srcset=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full.png 1921w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-300x170.png 300w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-768x435.png 768w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-1024x580.png 1024w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-258x146.png 258w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-50x28.png 50w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-123x70.png 123w\" sizes=\"auto, (max-width:767px) 480px, (max-width:1921px) 100vw, 1921px\" \/><\/p>\n<p>To enable this behavior, go to <strong>App Settings<\/strong> in the PowerApps editor, then select <strong>Screen size + orientation<\/strong>.\u00a0 Then, in the <strong>Advanced settings<\/strong> section, turn Off <strong>Lock aspect ratio<\/strong>.\u00a0 Just like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1760\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-unlocked.png\" alt=\"\" width=\"811\" height=\"828\" srcset=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-unlocked.png 811w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-unlocked-294x300.png 294w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-unlocked-768x784.png 768w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-unlocked-143x146.png 143w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-unlocked-50x50.png 50w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-full-unlocked-69x70.png 69w\" sizes=\"auto, (max-width:767px) 480px, (max-width:811px) 100vw, 811px\" \/><\/p>\n<p>If you turn On <strong>Lock aspect ratio<\/strong>, the Meeting Capture PowerApps sample template will look like this.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1761\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked.png\" alt=\"\" width=\"1921\" height=\"1089\" srcset=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked.png 1921w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked-300x170.png 300w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked-768x435.png 768w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked-1024x580.png 1024w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked-258x146.png 258w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked-50x28.png 50w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-small-locked-123x70.png 123w\" sizes=\"auto, (max-width:767px) 480px, (max-width:1921px) 100vw, 1921px\" \/><\/p>\n<p>You can learn more about the screen size and orientation settings <a href=\"https:\/\/docs.microsoft.com\/en-us\/powerapps\/maker\/canvas-apps\/set-aspect-ratio-portrait-landscape\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>One thing you need to be careful about when you turn Off <strong>Lock aspect ratio<\/strong> is how you position your controls. Absolute positioning for all of your controls will not work well.\u00a0 Instead, you will need to use relative positioning for your controls to ensure they stretch and move well to fill the entire web browser without overlapping each other, or looking all wonky.<\/p>\n<p>Here is an example (shown below) that demonstrates how you can set a relative position for controls in PowerApps.\u00a0 In this example, the Y coordinate is 20 pixels more than the bottom of the control that appears above it in the screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1762\" src=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative.png\" alt=\"\" width=\"1220\" height=\"626\" srcset=\"https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative.png 1220w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative-300x154.png 300w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative-768x394.png 768w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative-1024x525.png 1024w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative-260x133.png 260w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative-50x26.png 50w, https:\/\/toddbaginski.com\/blog\/wp-content\/uploads\/2018\/06\/meeting-capture-relative-136x70.png 136w\" sizes=\"auto, (max-width:767px) 480px, (max-width:1220px) 100vw, 1220px\" \/><\/p>\n<p><em><strong>Be careful how you edit!\u00a0<\/strong> <\/em>If you move controls on the design surface with your mouse or arrow keys any code you wrote to relatively position them will disappear and the X and Y coordinates will become fixed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever since the Onboarding Tasks and Meeting Capture PowerApps sample templates were released people have asked me, &#8216;How did you get the PowerApps to fill the<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":1,"featured_media":1765,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[96,104,121],"tags":[122,54,57,45,112],"class_list":["post-1757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mobile","category-office-365","category-powerapps","tag-how-to-powerapps","tag-mobile","tag-mobility","tag-o365","tag-powerapps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/comments?post=1757"}],"version-history":[{"count":3,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1757\/revisions"}],"predecessor-version":[{"id":1764,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/posts\/1757\/revisions\/1764"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media\/1765"}],"wp:attachment":[{"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/media?parent=1757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/categories?post=1757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/toddbaginski.com\/blog\/wp-json\/wp\/v2\/tags?post=1757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}