Skip to content
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

Space instead of border between rows #61

Open
gandaldf opened this issue Apr 26, 2018 · 4 comments
Open

Space instead of border between rows #61

gandaldf opened this issue Apr 26, 2018 · 4 comments

Comments

@gandaldf
Copy link

Hi, I would like to know if there a way to put some "space" or a "row-space" between the rows interested by the drag and drop event.
Now, while I'm dragging, there's only a grey border to highlight the future position of my row but this make it hard to drop, especialy if you work with a browser zoom < 100%.
Could someone please help me with this?

ex

@luke82
Copy link

luke82 commented Apr 27, 2018

Hi, I have solved a similar problem and I highlighted border. Like there:

http://dragtest1.slevkov.cz/index.html

add:
border-bottom: 2px dotted #ff0000;

into:

.ui-grid-draggable-row-over:before {
...
--- here ---
}

@Waszislaw
Copy link
Contributor

Hi, unfortunately, there is no such a possibility right now. The only way to walk around this is to style before element as @luke82 did.

@gandaldf
Copy link
Author

gandaldf commented Apr 30, 2018

Ok, no problem... I will try to use it as @luke82 said.
I have found that with this css the things seems to work a little better:

.ui-grid-draggable-row-over {
  position: relative;
  box-sizing: border-box;
}
.ui-grid-draggable-row-over:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  border: 1px solid #f00;
  box-sizing: border-box;
}
.ui-grid-draggable-row-over--above:before {
  top: -1px;
  box-sizing: border-box;
}
.ui-grid-draggable-row-over--below:before {
  bottom: -1px;
  box-sizing: border-box;
}

Basically, bottom: -1px and top: -1px reduce the "flickering" of the line when you are exactly between two rows.

@Waszislaw
Copy link
Contributor

Thank you for your advice! Indeed it seems to work better that way. Our team will finally resume supporting this project, we will try to make some fixes and upgrades soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants