-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bsmSelect(sortable) + overflow-y:scroll + firefox: list items disappearing when moving #21
Comments
what do you mean by 'move' (i.e. when exactly the issue occurs) |
I mean, when you start dragging a list item it then appears at the top of the window (so it disappears from bsmSelect visual module). I look at Firefox and what it happens is than the I haven't any online example. This is for a backend. If you give me some time, I'll try to send to you a demo (I'll try today), but I think that setting |
Ok, I see. |
Hey, I think there is no need of the demo. I just tried it in bsmSelect demo page and the same problem arised. Just add a rule Thank you! |
The example on the jQuery UI page is not affected because the container has Would you mind submitting a PR ? Thanks, |
There is a problem with this solution.
Ok, as you see, applying In the example in jQuery UI page the problem is not immediately visible because they have a very big container, but they have the same problem if you move the items beyond the big container. We should make better this solution or otherwise live with the ugly scroll bars, at least in Firefox. What would you prefer? |
So what about using |
And I forgot to thank you for your accurate analysis ! |
No, using No problem, thanks to you to work in this plugin. |
Ok so let's go for |
Are you sure? I mean, this issue is related purely with CSS, I think it would be cleaner to implement in CSS so anybody can see quickly. On the other hand, we can go on with a generic rule or with a hack to firefox (I have seen this issue in firefox, but no in chrome or opera, no idea about ie). If we use a hack, then the scroll bar problems won't appear in browsers different than firefox, but the code won't be standard compliant. As you like.... :) |
The thing is that you won't see the issue when you are not using the sortable plugin... but the extra css won't hurt when you do not use the scrollable plugin (I am thinking loud here). |
I'm using normalize.css stylesheet, through html5boilerplate. The problem arise in Firefox (tested in Iceweasel 4.0.1), but at least no in Chrome and Opera.
In normalize.css the following rule is defined:
html { overflow-y: scroll }
. In firefox, it produces that when list items are moved, theirtop
CSS property gets very low values (-700px
, for example), making them appear on the top of the page and making them disappear from user visual field.To solve this, you can define
overflow-y: auto
in.bsmList
.The text was updated successfully, but these errors were encountered: