Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
natmark committed Jan 31, 2019
2 parents e8a9fda + 36f2ccd commit 8ecdc1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ProcessingKit/Core/Typography/Text.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ public struct TextModel: TextModelContract {
if self.textComponents.textAlignX == .center {
self.text(str, x - width / 2, y, width, height)
return
} else if self.textComponents.textAlignX == .right {
self.text(str, x - width, y, width, height)
return
}

self.text(str, x, y, width, height)
}

Expand Down

0 comments on commit 8ecdc1a

Please sign in to comment.