Hi,
I've recently upgraded to ipywidgets 7.0.0. The new behaviour of SelectMultiple is at least distracting. If I have a long list of options and I select an option in the middle of it, the select scrolls so that the selection is at the bottom. That leads to constant jumps and I need to manually scroll to find the positions I want to be in. I suspect it is a desired behaviour, but I'd propose to add an option to disable it. Presently, I could not find anyway to disable this behaviour.
Thanks for raising an issue. I'm struggling to reproduce this. I tried:
import ipywidgets as widgets
s = widgets.SelectMultiple(options=['option-{}'.format(i) for i in range(50)])
s
Selecting by clicking the mouse on an option in the select box doesn't cause any scrolling on Chrome 60.
It would be great if you could add the following information:
This minimal example does reproduce my problem for my setup.
Great, thanks -- I can reproduce this in Firefox 54 on Mac OS, so the behaviour seems to be browser dependent.
I don't think this is intentional behaviour. A priori, it doesn't look like we're doing anything special to the select that would cause this. For anyone wanting to tackle this, maybe a good starting point would be to try and reproduce this behaviour in plain html (outside of the context of widgets).
As a side info, I was using ipywidgets 5.0 up to now and the behaviour was different. If this helps.
@jasongrout / anyone else. I tentatively labelled this as 'bug' and 'sprint friendly' (since it seems fairly isolated to the SelectMultiple widget) but feel free to change classifications, obviously.
seems fine to me 馃憤
Here's a guess at what is going on:
I also reproduced it in Firefox. Fix is over on #1713.