centered the letters for layout
2 files changed, 3 lines added, 1 line removed
Changes
--- clientSide/spreadsheet/script/newLayoutcontrol.js c5f08e6da440454a89c9825c3de26f7681c6e272
+++ clientSide/spreadsheet/script/newLayoutcontrol.js d1f0cae5c8e70f3f9aa34d1fc406a7068801736d
@@ -154,7 +154,9 @@
- context.fillText(toLetterLabel(integerx),currentWidth-getCellWidth(integerx),14);
+ var columnLabel = toLetterLabel(integerx);
+ var labelWidth = context.measureText(columnLabel).width;
+ context.fillText(columnLabel,currentWidth-(getCellWidth(integerx)/2)-(labelWidth/2),14);