EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
November 06, 2025, 01:26:49 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
How to drop in same position?
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to drop in same position? (Read 8548 times)
contestant
Newbie
Posts: 40
How to drop in same position?
«
on:
August 13, 2015, 02:53:07 PM »
Hi
How can drop an element to same position that drag on it?
In the other words, How can get the current dragged element position to recreate it in same position.
Thanks
Logged
contestant
Newbie
Posts: 40
Re: How to drop in same position?
«
Reply #1 on:
August 14, 2015, 01:57:14 PM »
Thank's for your very quick answer.
I fixed it myself as below:
var obj = $(source).draggable('proxy');
if(obj)
elm.css({ position:'absolute', left:obj.css("left").replace(/px/, "") - $("#content").offset().left, top:obj.css("top").replace(/px/, "") - $("#content").offset().top});
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...