fix: set default image height
This commit is contained in:
parent
3de7a4ba2d
commit
d4c9957d19
|
@ -344,6 +344,7 @@ public class TextFormater : NSObject {
|
||||||
0 != (_widthstring as NSString).doubleValue {
|
0 != (_widthstring as NSString).doubleValue {
|
||||||
if _widthstring.contains("%") {
|
if _widthstring.contains("%") {
|
||||||
width = _width * CGFloat((_widthstring as NSString).doubleValue) / 100
|
width = _width * CGFloat((_widthstring as NSString).doubleValue) / 100
|
||||||
|
height = _height * CGFloat((_widthstring as NSString).doubleValue) / 100
|
||||||
} else {
|
} else {
|
||||||
width = CGFloat((_widthstring as NSString).doubleValue)
|
width = CGFloat((_widthstring as NSString).doubleValue)
|
||||||
height = _height * width / _width
|
height = _height * width / _width
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = 'TextFormater'
|
s.name = 'TextFormater'
|
||||||
s.version = '1.2.2'
|
s.version = '1.2.3'
|
||||||
s.summary = 'Convert String to NSAttributedString'
|
s.summary = 'Convert String to NSAttributedString'
|
||||||
|
|
||||||
s.description = <<-DESC
|
s.description = <<-DESC
|
||||||
|
|
Loading…
Reference in New Issue