Skip to content

Commit

Permalink
Fix bug changing the instractionView width size when layoutSubviews c…
Browse files Browse the repository at this point in the history
…alled each time
  • Loading branch information
Husseinhj committed Nov 10, 2018
1 parent 302e734 commit ec9e56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MaterialShowcase/MaterialShowcaseInstructionView.swift
Expand Up @@ -124,7 +124,7 @@ public class MaterialShowcaseInstructionView: UIView {
height: 0)
secondaryLabel.sizeToFitHeight()
addSubview(secondaryLabel)
frame = CGRect(x: frame.minX, y: frame.minY, width: getWidth(), height: primaryLabel.frame.height + secondaryLabel.frame.height)
frame = CGRect(x: frame.minX, y: frame.minY, width: frame.width, height: primaryLabel.frame.height + secondaryLabel.frame.height)
}

//Calculate width per device
Expand Down

0 comments on commit ec9e56e

Please sign in to comment.