spacing
This commit is contained in:
parent
ecfd283b44
commit
c319e56609
1 changed files with 56 additions and 58 deletions
|
@ -671,7 +671,8 @@ function adjustCard(offsets, doSync) {
|
|||
var data = {
|
||||
id: this.id,
|
||||
position: {
|
||||
left: offset.col.position().left + (offset.x * offset.col.outerWidth()),
|
||||
left: offset.col.position().left + (offset.x * offset.col
|
||||
.outerWidth()),
|
||||
top: parseInt(card.css('top').slice(0, -2))
|
||||
},
|
||||
oldposition: {
|
||||
|
@ -680,13 +681,10 @@ function adjustCard(offsets, doSync) {
|
|||
}
|
||||
}; //use .css() instead of .position() because css' rotate
|
||||
//console.log(data);
|
||||
if (!doSync)
|
||||
{
|
||||
if (!doSync) {
|
||||
card.css('left', data.position.left);
|
||||
card.css('top', data.position.top);
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
//note that in this case, data.oldposition isn't accurate since
|
||||
//many moves have happened since the last sync
|
||||
//but that's okay becuase oldPosition isn't used right now
|
||||
|
|
Loading…
Add table
Reference in a new issue