Not getting any events to handle resize #2910
EverettMcKay
started this conversation in
General
Replies: 1 comment
-
Could you provide a Flems/Codepen/etc. demonstrating this? Also, your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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!
Beta Was this translation helpful? Give feedback.
All reactions