Comments (2)
Can repro this issue at iOS platform on the latest 17.10 Preview 5 (8.0.21&8.0.14).
from maui.
Simpler reproduction
public class MenuPage : ContentPage
{
private int _counter;
public MenuPage()
{
Title = "Menu";
On<Microsoft.Maui.Controls.PlatformConfiguration.iOS>().SetUseSafeArea(true);
}
protected override void OnSizeAllocated(double width, double height)
{
Debug.WriteLine($"****** Width = {width} Height = {height} Counter = {++_counter} ***********");
Content = new Border { WidthRequest = 100, HeightRequest = 100 };
}
}
I think it happens like this
- Setting SetUseSafeArea to true, registers something that is watching MenuPage for changes, and when it sees a change it tries to update the menu page using something called CrossPlatformArrange.
- The Flyout page is not using the same size the CrossPlatformArrange is trying to make the Menu Page.
- When the Content is set, Flyout rechecks the menu page, and notices the change, and tries to set it.
- The thing that is listening because of the SetUseSafeArea, notices, and tries to change it back again as well.
- They keep doing this forever, both trying to set it to different sizes, and the loop never ends.
from maui.
Related Issues (20)
- Has anyone done a human body keypoint test?
- Maui usage of Glide is preventing us from using our own model loaders HOT 2
- CollectionView SelectedItem loses Background after opening and closing a Modal page HOT 2
- CarouselView behaves strangely when manipulating position in ViewModel HOT 3
- [iOS] RecalculateSpanPositions causing crash HOT 1
- Haven't found the My Mac from the list of Debug target in curl braces HOT 3
- On Android, if there's more then one entry in ViewCell, the second entry calls the Unfocused event on every keystroke HOT 2
- the project needs to be deployed before we can debug. HOT 2
- [MAUI]Adding 7 to D10 and continue clicking a few more times, then click ‘-’, the page will get stuck. HOT 5
- Images do not layout correctly in Mac and iOS HOT 3
- Arabic Text Tap Gestures don't work on Label Spans in iOS HOT 2
- Run .NET Multi-platform App UI development problem run under Windows 10 HOT 3
- XAML error is shown when the content of a DataTemplate is not a View HOT 5
- Adding value dynamically using parameters to the InputTextarea in the OnBindingContextChanged after some delay, the value not updated properly. HOT 1
- (1)Error running default MAUI/NET8 win10 solution. (2)Another user has already installed an unpackaged version of this app (3) Could not establish trust relationship for the SSL/TLS secure channel HOT 4
- Spans with FontAttributes do not render on Android (When Span.Text uses data binding) HOT 2
- [Entry] [Android] Cursor makes undesired jumps with Masked Behavior HOT 3
- Error when running the project as windows machine HOT 3
- Border's corner radius malform during expand animation HOT 4
- No Android SDK instance matching the 'C:\Program File(x86)\Android\android-sdk' path HOT 5
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 maui.