Skip to content

Incomplete borders. VisualCell.cs #270

@ravetroll

Description

@ravetroll

This code is in the file, but is missing the other two sides of the cell

if (format.BorderBottom != null)
            sb.AddStyle("border-bottom", $"{format.BorderBottom.Width}px solid {format.BorderBottom.Color};");
        if (format.BorderRight != null)
            sb.AddStyle("border-right", $"{format.BorderRight.Width}px solid {format.BorderRight.Color};");

Can we add:

if (format.BorderLeft != null)
            sb.AddStyle("border-left", $"{format.BorderLeft.Width}px solid {format.BorderLeft.Color};");
        if (format.BorderTop != null)
            sb.AddStyle("border-top", $"{format.BorderTop.Width}px solid {format.BorderTop.Color};");

Like it is we can only have a bottom and a right border.

I tested in the browser developer adding those styles and it looked good so this will work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions