Open ianhi opened 4 years ago
Thanks for reporting this! That's indeed not very convenient.
Maybe there could be a check that it won't be resized to be larger the layout (this.model.get('layout'))?
That might not do it, because if this.model.get('layout').get('width')
is 50%
, you need to know what it represents in terms of pixels. So we might need to look at its container size as well.
Describe the issue
If you drag the resize handle outside the limits of the notebook and release the mouse you lose the ability to resize as the handle will be hidden:
This is a consequence of using a window mouse move listener: https://github.com/matplotlib/ipympl/blob/6b44a6f90cf74b12cfcf930b440010984d8a9b4d/js/src/mpl_widget.js#L272
Maybe there could be a check that it won't be resized to be larger the layout (
this.model.get('layout')
)?Versions