Skip to content

Horizontal and Vertical should have type Orientation #543

Closed
@241m

Description

@241m

I was browsing the go docs and found a minor error. It's not a bug or anything (if I'm not mistaken), it's just that Horizontal and Vertical constants doesn't show up under the Orientation type in the reference doc, because they're set as normal ints.

tcell/views/constants.go

Lines 51 to 60 in 896efab

// Orientation represents the direction of a widget or layout.
type Orientation int
const (
// Horizontal indicates left to right orientation.
Horizontal = iota
// Vertical indicates top to bottom orientation.
Vertical
)

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