Ver código fonte

Fix max box width calculation

ApisNecros 1 ano atrás
pai
commit
b99283c7bf
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/codebox.ts

+ 2 - 1
src/codebox.ts

@@ -747,7 +747,8 @@ export class CodeBox {
 
         let maxWidth = 0;
         for (const row of this.box) {
-            if (maxWidth > row.length) { maxWidth = row.length; }
+            if (row.length > maxWidth) { maxWidth = row.length; }
         }
+        this.maxBoxWidth = maxWidth;
     }
 };