Giter Site home page Giter Site logo

Comments (2)

btschumy avatar btschumy commented on May 20, 2024

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.

btschumy avatar btschumy commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.