# Dragging nodes from the palette and align to grid

**URL:** <https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637>\
**Category:** General\
**Created:** [19 June 2020 19:58 UTC](https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637 "2020-06-19T19:58:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)\
**Post date:** [19 June 2020 19:58 UTC](https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637/1 "2020-06-19T19:58:14Z")

</div>

Hi,

This is a really minor issue, but something that "annoys" (too hard word) me since the grid feature was introduced (how many years has that been?), is that when dragging a node from the palette it does not snap to the grid, only if you move it again after you have placed it.  
Even worse, sometimes the closer you are to an actual grid line, the more the node jumps around on mouse up.

As I said, not something that is critical, but I am curious about your opinions on that.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [19 June 2020 20:31 UTC](https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637/2 "2020-06-19T20:31:25Z")

</div>

Sounds like a bug to me

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 June 2020 20:45 UTC](https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637/3 "2020-06-19T20:45:13Z")

</div>

I am not seeing that with 1.0.3 or the new Beta. Running Waterfox on Ubuntu  
For me it snaps when I drop it.

---

<div class="post-metadata">

**Author:** ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)\
**Post date:** [19 June 2020 20:54 UTC](https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637/4 "2020-06-19T20:54:50Z")

</div>

![output](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/72f359deb5d152d5b76123e3a5c5a986052360ba.gif)

I can remember this problem being present in all versions I can remember having snap to grid.  
Also in the current beta.

So snapping works in y-direction, but not in x-direction. But the snapping action in y-direction is also not directly intuitive  
I guess it might have to do with the fact that the label is calculated after dropping? Have not looked yet at the code

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 June 2020 20:57 UTC](https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637/5 "2020-06-19T20:57:58Z")

</div>

Oh I see what you mean. It snaps vertically but not horizontally. You are right, I just hadn't noticed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 August 2020 20:58 UTC](https://discourse.nodered.org/t/dragging-nodes-from-the-palette-and-align-to-grid/28637/6 "2020-08-18T20:58:05Z")

</div>

Closed on 18 August 2020 20:58 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
