Commit cc2e277cd13734076f068733689ab661f8d4d9d4
1 parent
f9b20af9
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix cursor position for draggable blocks
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
app/helpers/boxes_helper.rb
... | ... | @@ -215,6 +215,8 @@ module BoxesHelper |
215 | 215 | :scroll => false, |
216 | 216 | :start => "startDragBlock", |
217 | 217 | :stop => "stopDragBlock", |
218 | + :cursor => "'move'", | |
219 | + :cursorAt => '{ left: 0, top:0, right:0, bottom:0 }', | |
218 | 220 | }.merge(options) |
219 | 221 | draggable_element(element_id, draggable_options) |
220 | 222 | end | ... | ... |
app/views/box_organizer/index.html.erb
... | ... | @@ -20,7 +20,8 @@ |
20 | 20 | <%= display_icon(block) %> |
21 | 21 | </div> |
22 | 22 | <span><%= _(block.pretty_name) %></span> |
23 | - <%= block_draggable("block-#{block.name.to_css_class}") %> | |
23 | + <%= block_draggable("block-#{block.name.to_css_class}", | |
24 | + :cursorAt => '{bottom: 30, left: 0}') %> | |
24 | 25 | </div> |
25 | 26 | <% end %> |
26 | 27 | </div> | ... | ... |