Comments (2)
It does look like the FormsSample app does get created at the correct size. I did create my app using that as a template, but maybe there is something slightly different between how the two create the Urho Application. I will dig into this and try to track it down.
from urho.
Okay, I've found a workaround for this. In the example FormsSample application, the app is launched and the first Page is a screen with a button to click to show the page with the UrhoApp. That made me think it could be some sort of timing problem.
In my app, the MainPage that is first shown contains the UrhoApp. It was started as follows:
protected override void OnAppearing()
{
base.OnAppearing();
StartUrhoApp();
}
This results in the too small UrhoApp view. It looks like you need to delay the creation of the UrhoApp slightly. If I change the code to:
protected override void OnAppearing()
{
base.OnAppearing();
Device.StartTimer(TimeSpan.FromMilliseconds(1), () =>
{
StartUrhoApp();
return false;
});
}
Then it is created at the correct size. Apple must have changed something in iOS 14 that means the view is not the correct size at the time OnAppearing is called.
I do consider this a bug and it will likely bite most folks. I do have a reasonable workaround though.
from urho.
Related Issues (20)
- Dependency injection for Application HOT 2
- Red/Blue color reversal with .png files on iOS
- Textures get deleted unintendedly
- Showing UrhoSurface shows status bar on iOS
- Question about left hand coordinates HOT 2
- Visual Studio 2019 Community and Xamarin + Urho -- Could not find resource
- urho Binding xamarin forms WPF
- Provide Nuget Packages for .NET Core 3.1 of UrhoSharp.WinForms HOT 6
- UrhoSharp on UWP Xamarin Forms - Disposes when you Navigate to new Page
- Linux support
- Cannot Build UrhoSharp - Build Instructions seem broken
- License is ambiguous
- How to setup the UrhoSharp engine to render on a live wallpaper on Xamarin Android platform ?
- How to update with the latest 3D Engine version?
- Urho.Forms.UrhoSurface.OnDestroy(); Crash
- Inverse Kinematic functionality missing
- Placing an item on the wall with UrhoSharp
- MAUI Support
- UnhandledException Not Firing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urho.