Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSaksham Gupta <shucon01@gmail.com>2018-03-28 03:27:56 +0300
committerSaksham Gupta <shucon01@gmail.com>2018-03-28 03:27:56 +0300
commit91675fd2fe1281f4ad96ee8e196ce907542ec3ed (patch)
tree1f272b477f4f4b8118c989aa241705d7d5c40082 /js
parent0d335856dd6249db6f1d7df67f7503c12a977502 (diff)
Tables stop at border
Fixes: https://github.com/phpmyadmin/phpmyadmin/issues/14135 Signed-off-by: Saksham Gupta <shucon01@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/designer/move.js5
1 files changed, 5 insertions, 0 deletions
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) {