From 91675fd2fe1281f4ad96ee8e196ce907542ec3ed Mon Sep 17 00:00:00 2001 From: Saksham Gupta Date: Wed, 28 Mar 2018 05:57:56 +0530 Subject: [PATCH] Tables stop at border Fixes: https://github.com/phpmyadmin/phpmyadmin/issues/14135 Signed-off-by: Saksham Gupta --- js/designer/move.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/designer/move.js b/js/designer/move.js index c2226ce27a..8a2dc10ae5 100644 --- a/js/designer/move.js +++ b/js/designer/move.js @@ -155,6 +155,11 @@ function MouseMove (e) { new_y = parseInt(new_y / grid_size) * grid_size; } + if (new_x < 0) { + new_x = 0; + } else if (new_y < 0) { + new_y = 0; + } $cur_click.css('left', new_x + 'px'); $cur_click.css('top', new_y + 'px'); } else if (layer_menu_cur_click) {