Skip to content

Commit

Permalink
finish dynamic card sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Cram committed Jun 30, 2022
1 parent ff43e50 commit 8f05c94
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions Squello-Core.package/SPBCard.class/instance/resizeCard.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
updating
resizeCard

self extent: (280 @ ((self titleMorph extent y + 20) max: 100)).
self updateLabelIcons.
self assigneeMorph position: (self position x + (self extent x - 100)) @ (self position y + (self extent y - 20)).
self lane alignCards

3 changes: 1 addition & 2 deletions Squello-Core.package/SPBCard.class/instance/updateTitle..st
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ updateTitle: aString
[self title: aString.
self titleMorph contents: aString.
self provider updateCard: self.
self extent: (280 @ ((self titleMorph extent y + 20) max: 100)).
self lane alignCards].
self resizeCard].
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBCard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"provider:" : "mcr 5/21/2022 20:51",
"repo" : "mcr 5/21/2022 20:51",
"repo:" : "mcr 5/21/2022 20:51",
"resizeCard" : "mcr 6/30/2022 20:02",
"title" : "mcr 5/18/2022 14:54",
"title:" : "mcr 5/21/2022 20:52",
"titleMorph" : "mcr 5/27/2022 12:18",
Expand All @@ -35,7 +36,7 @@
"updateBalloonText" : "mcr 5/30/2022 23:42",
"updateDescription:" : "mcr 5/21/2022 19:53",
"updateLabelIcons" : "mcr 6/7/2022 15:39",
"updateTitle:" : "mcr 6/30/2022 19:40",
"updateTitle:" : "mcr 6/30/2022 19:53",
"user" : "mcr 5/21/2022 20:52",
"user:" : "mcr 5/21/2022 20:52",
"walkToPosition:" : "NTK 6/6/2022 13:46",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ buildUI
updateAssigneeCount;
updateLabelIcons.

self card assigneeMorph position: self card position x + (self card extent x - 180) @ self card position y + (self card extent y - assignees extent y)
self card assigneeMorph position: (self card position x + (self card extent x - 100)) @ (self card position y + (self card extent y - 20)).



Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"buildFromRemote:into:" : "mcr 5/28/2022 02:54",
"buildLabels:" : "lo 6/5/2022 14:51",
"buildNew:into:" : "mcr 5/28/2022 03:02",
"buildUI" : "mcr 6/30/2022 19:47",
"buildUI" : "mcr 6/30/2022 20:03",
"card" : "mcr 5/19/2022 09:30",
"card:" : "mcr 5/19/2022 09:30",
"provider" : "mcr 5/20/2022 12:06",
Expand Down

0 comments on commit 8f05c94

Please sign in to comment.