Skip to content

Commit

Permalink
Fixed an issue in span's resizing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedrosa committed Feb 3, 2016
1 parent ea1a6c7 commit b127faa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/SuaSDL/span.swift
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,9 @@ public class Span: Element {
contentHeight - s.height
s.element!.draw(ap.x, y: ap.y + yo, size: candidateSize)
} else {
if s.height > contentHeight {
candidateSize.height = contentHeight
}
s.element!.draw(ap.x, y: ap.y, size: candidateSize)
}
w -= s.width
Expand Down

0 comments on commit b127faa

Please sign in to comment.