瀏覽代碼

1.文字显示问题

huangxiaodong 10 月之前
父節點
當前提交
3c8199e88c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      创维盒子/双子星云手机/NAS/view/backupsOptionTipView.m

+ 3 - 3
创维盒子/双子星云手机/NAS/view/backupsOptionTipView.m

@@ -103,9 +103,9 @@
      //计算高度
     CGFloat textHeight = [fullTitle boundingRectWithSize:CGSizeMake(270, 1000) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14.0]} context:nil].size.height;
 
-    
+    textHeight += 40;
     [contentTV mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.height.mas_equalTo(textHeight +20);
+        make.height.mas_equalTo(textHeight);
         make.left.mas_equalTo(15);
         make.right.mas_equalTo(-15);
         make.top.equalTo(titleLabel.mas_bottom).offset(10.0);
@@ -142,7 +142,7 @@
     [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
         make.centerX.mas_equalTo(0);
         make.width.mas_equalTo(300);
-        make.height.mas_equalTo(45 + textHeight + 30 + 65 + 20);
+        make.height.mas_equalTo(45 + textHeight + 10 + 65 + 20);
         make.centerY.mas_equalTo(-20);
     }];