Skip to content

Commit

Permalink
Move both cards AND stickies when a board resize happens
Browse files Browse the repository at this point in the history
  • Loading branch information
aliasaria committed Dec 17, 2020
1 parent fa97c4b commit 9d1aa0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ function resizeBoard(size) {

function calcCardOffset() {
var offsets = {};
$(".card").each(function() {
$(".card,.sticky").each(function() {
var card = $(this);
$(".col").each(function(i) {
var col = $(this);
Expand All @@ -730,7 +730,7 @@ function calcCardOffset() {
//doSync is false if you don't want to synchronize
//with all the other users who are in this room
function adjustCard(offsets, doSync) {
$(".card").each(function() {
$(".card,.sticky").each(function() {
var card = $(this);
var offset = offsets[this.id];
if (offset) {
Expand Down

0 comments on commit 9d1aa0d

Please sign in to comment.