marinofaggiana пре 4 година
родитељ
комит
1017ca0043
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

+ 1 - 1
iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

@@ -711,7 +711,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC
         for kern in 1...1000 {
             let attributesTmp = [NSAttributedString.Key.font: font, NSAttributedString.Key.foregroundColor: fontColor, NSAttributedString.Key.kern: kern] as [NSAttributedString.Key : Any]
             let size = text.size(withAttributes: attributesTmp).width
-            if size < bounds.width {
+            if size <= bounds.width {
                 attributes = attributesTmp
             } else {
                 break