Modifying the widget tree in some ways leads to a crash
See original GitHub issueProblem description
Modifying a widget tree in a certain way (snippet 1) to achieve the constellation from snippet 2 results into the app hanging up.
Creating the same constellation at once works as expected (snippet 2).
Environment
- Tabris.js version: 3.4
- OS: Android 9
Code snippet
Snippet 1:
import {contentView, Composite} from 'tabris';
contentView.append(
<Composite left centerY width={30} height={30} background='red' right='next()' />
)
setTimeout(() => {
contentView.append(
<Composite right centerY width={30} height={30} background='blue' />
);
}, 2000)
Snippet 2:
import {contentView, Composite} from 'tabris';
contentView.append(
<$>
<Composite left centerY width={30} height={30} background='red' right='next()' />
<Composite right centerY width={30} height={30} background='blue' />
</$>
)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Tried to listen to a value exposed with provider, from outside of ...
Is there any way to access the provider from outside the widget tree ?. A common case would be using the showDialog method...
Read more >Understand Kivy order-of-creation, changing root widget ...
Using a Screenmanager as the root widget, I have some simple code to (optionaly) display a Splashscreen, then the Mainscreen. It works fine....
Read more >Enhance your widget - Android Developers
This page includes details for optional widget enhancements that are available starting in Android 12 (API level 31). These features are optional, ...
Read more >Kivy Crash Course 3 - More interesting widget interactions
This post has been a very quick introduction to some basic Kivy layout techniques, and a simple way to bind our own behaviours...
Read more >Creating and Displaying UI | Unreal Engine 4.27 Documentation
In this how-to, we will create a Widget Blueprint and add some Text to it, then through the Level Blueprint display it when...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@fax1ty Tabris and tabris-cli versions?
3.5.0, both