question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `SizeChanged` event

See original GitHub issue

I would like to store the size of an AbsoluteLayout control within my model, because based on that I can tell whether some controls (i.e. players) within this layout are touching the border. Xamarin.Forms has VisualElement.SizeChanged, but in Fabulous I couldn’t find something similar. The only thing I found was OnSizeAllocatedCallback which only works when attached to a ContentPage.

Would it be possible for you to enable SizeChanged events for ViewElements or how else could I store the size of a specific control within my Elmish model?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TimLarivierecommented, Feb 10, 2019

Thanks for reporting. We will add SizeChanged and the other missing events from VisualElement.

0reactions
johanneseggercommented, Feb 15, 2019

Yeah, I would also prefer that, thanks a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Control.SizeChanged Event (System.Windows.Forms)
This event handler displays a message box indicating that the size of the control has changed.
Read more >
How to programmatically raise SizeChanged event
It's very strange that the SizeChanged event doesn't fire with your code, it appears to be correct. Maybe the StackPanel doesn't exists in ......
Read more >
Window: resize event - Web APIs | MDN
The resize event fires when the document view (window) has been resized. This event is not cancelable and does not bubble.
Read more >
resize event | jQuery API Documentation
Bind an event handler to the "resize" event, or trigger that event on an element. ... version added: 1.7.on( "resize" [, eventData ],...
Read more >
onresize Event
The onresize event occurs when the browser window has been resized. ... Using the addEventListener() method to attach the "resize" event on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found