mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Fix issue where dragging a small widget up onto a bottom corner of another widget led to persistent overlap
This commit is contained in:
Vendored
+1
-1
@@ -2883,7 +2883,7 @@
|
||||
$overlapped_widgets.each($.proxy(function (i, w) {
|
||||
var $w = $(w);
|
||||
|
||||
if ($gr.can_go_down($w)) {
|
||||
if ($gr.can_go_down($w) && $w.coords().grid.row === $gr.player_grid_data.row) {
|
||||
$gr.move_widget_down($w, $gr.player_grid_data.size_y);
|
||||
$gr.set_placeholder(to_col, to_row);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -2883,7 +2883,7 @@
|
||||
$overlapped_widgets.each($.proxy(function (i, w) {
|
||||
var $w = $(w);
|
||||
|
||||
if ($gr.can_go_down($w)) {
|
||||
if ($gr.can_go_down($w) && $w.coords().grid.row === $gr.player_grid_data.row) {
|
||||
$gr.move_widget_down($w, $gr.player_grid_data.size_y);
|
||||
$gr.set_placeholder(to_col, to_row);
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -1989,7 +1989,7 @@
|
||||
$overlapped_widgets.each($.proxy(function (i, w) {
|
||||
var $w = $(w);
|
||||
|
||||
if ($gr.can_go_down($w)) {
|
||||
if ($gr.can_go_down($w) && $w.coords().grid.row === $gr.player_grid_data.row) {
|
||||
$gr.move_widget_down($w, $gr.player_grid_data.size_y);
|
||||
$gr.set_placeholder(to_col, to_row);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user