Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form changes are ignored until space resize #660

Open
tinchodias opened this issue Dec 4, 2024 · 0 comments
Open

Form changes are ignored until space resize #660

tinchodias opened this issue Dec 4, 2024 · 0 comments

Comments

@tinchodias
Copy link
Collaborator

This happens both in SDL2 and MorphicWindow hosts.

Example:

canvasForm := Form extent: 50 @ 50 depth: 32.
canvasForm fillColor: Color red.
canvasElement := BlElement new
	background: canvasForm;
	yourself.
canvasElement openInNewSpace extent: 500 @ 500.

"wait and do:"
canvasForm fillColor: Color green.

Dec-04-2024 15-08-48

The cause is AeCanvas which has a cache for Form used as backgrounds. This cache is never reseted. On space resize, a new AeCanvas is created so new cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant