Skip to content

column.SetStyle does not work with wrapped style #463

@Logan9312

Description

@Logan9312

When using the following function, it doesn't seem to set the cells to wrapped properly. If I use the exact same process on an individual cell it works properly. https://pkg.go.dev/gitea.com/unidoc/unioffice/spreadsheet#Column.SetStyle

Expected Behavior

When using Column.SetStyle with the wrapped style, all cells in that column should become wrapped.

An example of the issue:

style := ss.StyleSheet.AddCellStyle()
style.SetWrapped(true)
sheet.Column(1).SetStyle(style)
sheet.Column(1).SetWidth(200)
sheet.Cell("A7").SetStyle(style)

In this example, the cell A7 will be wrapped, but no other cells in the first column will be wrapped. I can verify this is the correct column because SetWidth(200) works as intended.

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