-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
react-beautiful-dnd and semantic-ui-css compatibility issue #904
Comments
@MohammedAl-Mahdawi I've been using this with Semantic and agree that their CSS does mess with react-beautiful-dnd some. A work around I've been using is setting scroll on the list container. It throws a warning in the console, but I'm not sure why because there's only one scroll container that I can see. I've been using to drag between lists and rearrange lists with no problems at all. Updated demo: https://codesandbox.io/s/5ylov12v3l |
@mwood23 Thanks for your help, however, your workaround didn't work for me because I don't want to add a scrollbar to the list. |
The issue is caused by So for your use case you can just remove that style. We check |
https://www.w3.org/TR/css-overflow-3/#overflow-properties
|
So by setting overflow-x it forces overflow-y to 'auto' |
Also relevant: https://www.brunildo.org/test/Overflowxy2.html |
I am not sure how we are going to distinguish between elements that only have overflow-: hidden with an overflow- auto on the other axis... It is possible to have a scroll container that is overflow-x: hidden and overflow-y: auto that is a scroll container It is also possible to have a scroll container that is overflow-x: hidden and overflow-y: auto that is NOT a scroll container |
I am a bit stuck as I cannot figure out a way to distinguish between the two cases. For now just remove the |
Hi @alexreardon Thanks a lot for your help, I used |
I am creating a more generic solution
…On Thu, 15 Nov 2018 at 4:05 pm, Mohammed ***@***.***> wrote:
Hi @alexreardon <https://github.com/alexreardon> Thanks a lot for your
help, I used body { overflow-x: visible; } hopefully it won't break
anything in the project and I'll wait for your generic solution.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#904 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACFN7b8gFPv3FqeWgs6otKPkY0F4hteZks5uvPYVgaJpZM4YX9rY>
.
|
Here is a new guide I have been writing: https://github.com/atlassian/react-beautiful-dnd/blob/61a3e210d47987e377cc4bbb1a69316311b6067f/docs/guides/how-we-detect-scroll-containers.md |
@alexreardon using |
This will be fixed by #929 |
@alexreardon Thank you |
Bug or feature request?
Bug
Expected behavior
I expect to be able to drag an item from the top of the list and drop it at the bottom of it when using semantic-ui-css.
Actual behavior
Cant drop the first item for example at the bottom of the list unless removing
import "semantic-ui-css/semantic.min.css";
or make the body heightauto
which is set by semantic-ui-css to100%
and will affect the Semantic UI components and the entire website.Steps to reproduce
Drag the first list item and drop it at the bottom of the list.
What version of
React
are you using?My local React version is 16.6.1 and the demo version is 16.0.1
What version of
react-beautiful-dnd
are you running?9.0.2
What browser are you using?
Google Chrome
Demo
https://codesandbox.io/s/5mo465r1l
The text was updated successfully, but these errors were encountered: