I wonder if anyone can help. I've got an canvas app embedded on a model-driven app form and even though I've played with settings on the App I am getting a huge section of white-space below the app, which results in a scroll bar - this is not on the app itself but the section on the model-driven app that the canvas app is embedded:
The app itself is set to 1200 x 400 and I've played with the resize settings in the app settings and neither option removes the scroll bar. The app is embedded in a single-column section on the main form.
Any advice gratefully appreciated.
Has anyone found a resolution for this? I have the same issue. My app is 768 height, and all the controls fit on however when you run it in a Dynamics form it is 3998 high :-(.
Like the original poster I have tried all combinations of size and scale.
One thing I have noticed is that if you make a lot of changes to an embedded canvas app, the app "window" increases in size, not the actual app canvas. To test this out, and I know it's not ideal, embed another canvas app by removing the field that currently associates the canvas app to the model-driven form, and see if you still get the border. If you don't, copy all controls from your old app to this app and see if the scroll bar still stays away.
Let me know the outcome of this. It has helped me get rid of the scroll bar on numerous occasions.
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions.
Microsoft Business Applications MVP
Microsoft Certified Trainer MCT
@not_a_thing, I've had no luck with this - I've essentially just given up on it; I have two Apps embedded on two different forms. They are both the same size, they have the same settings and are embedded the same way. One works (i.e. no scrolling) and one doesn't...
It's crazy - I am working on them at the moment and will check to see whether the field type makes any difference (the one you bind on the form for the embedded App. I'll post back if it works!
OK, our client has been generous and let me have the time needed to find out about this.
First thing first, I found this article:
There, there are basically 2 things that can screw it up:
- The Scale to fit option isn’t enabled with the canvas app.
- The App Name property value is missing or is incorrectly defined in the embedded canvas app control. This might occur when the model-driven app and canvas app have been imported as a solution into another Dataverse environment.
So I narrowed it down to App Name, as Scale to Fit seems to have no effect in my case - it definitely can't fix the issue by just turning it on when you already have the white space below the app.
So what I did was to create a new app inside the form, set the right size from the very start in advanced settings, leave the Scale to Fit option on, save (it will autopublish).
WAIT until the App name field will autogenerate in the model-driven form. Save and publish the form
Go back to the app, adjust both App.MinScreenHeight and App. MinScreenWidth to the smallest values desired, adjust all of the Screens Height and Width to the same constant values that you provided for the app size (in the advanced settings), save and publish.
Then I spent half an hour copying my old app to the new; many things will copy-paste, but the the absolute positions of the controls were wrecked. Media had to be re-imported.
Save and publish.
At this time, the white space below will disappear, but the scrollbars will remain, when you switch to a smaller screen.
This is when you change the Screen Height and Witdh back to default Max(App.Height, App.MinScreenHeight) and Max(App.Width, App.MinScreenWidth) and turn Scale to Fit off.
This is my result:
Excellent work! I'll test this on our environments tomorrow - I have two identically sized Apps on different forms and one works and one doesn't (all settings are identical)
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.