Commit a7fd4016 by Daniel Dahan

master: issue-676: fixed issue where contentView was not adjusting correctly for size of text

parent 95f455aa
Pod::Spec.new do |s|
s.name = 'Material'
s.version = '2.4.11'
s.version = '2.4.12'
s.license = 'BSD-3-Clause'
s.summary = 'An animation and graphics framework for Material Design in Swift.'
s.homepage = 'http://materialswift.com'
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.4.11</string>
<string>2.4.12</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -233,10 +233,8 @@ open class Card: PulseView {
let w = container.width - insets.left - insets.right
var h = view.height
if 0 == h {
(view as? UILabel)?.sizeToFit()
h = view.sizeThatFits(CGSize(width: w, height: CGFloat.greatestFiniteMagnitude)).height
}
h = view.sizeThatFits(CGSize(width: w, height: .greatestFiniteMagnitude)).height
view.width = w
view.height = h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment