You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a followup to #2855. For that question, adding the "reisze" handlers worked as suggested. However, I have a new situation where I can't get any resize events.
First off: Having a graceful way to handle resize would be a very welcome addition to Mithril. The need isn't uncommon.
The code below shows exactly what I am doing. I have a left, right, and bottom pane for a report, with moveable size div in between the left and right panes. Per #2855 I tried every combination of addEventListener I could think (window vs. container, parent vs. left pane), but when resizing no events (view, onbeforeupdate, onupdate) are received. As a result, the left pane content never resizes.
Could you provide a Flems/Codepen/etc. demonstrating this?
Also, your onbeforeupdate here is (severely) leaking listeners, by the way. That method is called on every redraw and the duplicated listeners could be behind some of your problems.
This is a followup to #2855. For that question, adding the "reisze" handlers worked as suggested. However, I have a new situation where I can't get any resize events.
First off: Having a graceful way to handle resize would be a very welcome addition to Mithril. The need isn't uncommon.
The code below shows exactly what I am doing. I have a left, right, and bottom pane for a report, with moveable size div in between the left and right panes. Per #2855 I tried every combination of addEventListener I could think (window vs. container, parent vs. left pane), but when resizing no events (view, onbeforeupdate, onupdate) are received. As a result, the left pane content never resizes.
How can I make this work?
Thanks!
The text was updated successfully, but these errors were encountered: