Skip to content

Commit

Permalink
AlbTextElement>>layoutCursor: context:
Browse files Browse the repository at this point in the history
cursor element layout fixed
  • Loading branch information
plantec committed Jan 2, 2024
1 parent 03c9704 commit 2e0db6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Album/AlbTextElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ AlbTextElement >> layoutCursor: aBounds context: aBlElementBoundsUpdateContext [

textPosX := (self screenPositionAt: cursorPos) x.
textPosX := ((textPosX - (cursorElement measuredWidth // 2)) min: maxTextPosX) max: minTextPosX.
textPos := (textPosX max: -1.0) @ self padding top.
textPos := (textPosX max: 0.0) @ self padding top.

cursorElement
applyLayoutIn: (textPos extent: (cursorElement measuredWidth @ ((cursorElement measuredHeight - self padding height) max: 0.0)))
Expand Down

0 comments on commit 2e0db6b

Please sign in to comment.