Skip to content

Right border not shown in merged cells #100

@pferioli

Description

@pferioli

Describe the bug
The right border of merged cells is not drawn

To Reproduce

worksheet.cell(1, 1, 1, 2, true).string("SEMANA").style({
                    alignment: {
                        wrapText: false,
                        horizontal: 'center',
                        vertical: 'center'
                    },
                    fill: {
                        type: 'pattern',
                        patternType: 'solid',
                        bgColor: "#ff0000",
                        fgColor: "#ff0000",
                    },
                    font: {
                        color: 'black',
                        size: 11,
                    },
                    border: { // §18.8.4 border (Border)
                        left: {
                            style: "thin",
                            color: "#000000"
                        },
                        right: {
                            style: "thin",
                            color: "#000000"
                        },
                        top: {
                            style: "thin",
                            color: "#000000"
                        },
                        bottom: {
                            style: "thin",
                            color: "#000000"
                        },
                        outline: true
                    },
                });

Expected behavior
The cell should have the 4 borders in thin black

Environment (please complete the following information):

  • Node Version: v20.15.0
  • excel4node Version: 1.8.2
  • Application: Microsoft Excel, Numbers

Additional context
After setting the style to have the four sides of the cell with a border the right one is not present. I Included one example but in the image can see this happens in all merged cells

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions