SizeChanged not fired

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
joaofig
Posts: 9
Joined: Sat Oct 28, 2017 6:32 am

SizeChanged not fired

Postby joaofig » Sun Oct 29, 2017 9:53 am

I just found out that the SizeChanged event is not fired when a Grid contained within a parent Grid is resized using a GridSplitter. The behavior I am expecting is clearly depicted on this WPF project:

WpfGridResize.zip
(194.94 KiB) Downloaded 368 times


When the top right grid is resized, the height and width text blocks change accordingly. Unfortunately, this does not happen when the code is ported to C#/XAML for HTML5 as can be seen on the following project:

CSHTML5GridResize.zip
(92.64 KiB) Downloaded 360 times


No matter what I tried, I was never able to be notified of the size change. Am I missing something?

Incidentally, this situation mimics a project that I am currently working on and both right-hand grids are supposed to host Plotly.js charts using code derived from your example. Even when the layout has the autosize property set to true, the chart is never able to detect that the parent size has changed, so this hints at an issue with the HTML5/JS transcription.

Can you please provide some insight on this issue?

Best regards,
João Paulo Figueira

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: SizeChanged not fired

Postby JS-Support @Userware » Thu Nov 02, 2017 1:09 am

Hi,

Thanks for reporting this issue and providing the projects to reproduce it.

We are going to fix it asap.

Regards,
JS-Support


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests