Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
beansgum committed Aug 19, 2021
1 parent 04cb8f1 commit a660698
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/decredmaterial/linearlayout.go
Expand Up @@ -10,8 +10,8 @@ import (
)

const (
WRAP_CONTENT = -1
MATCH_PARENT = -2
WrapContent = -1
MatchParent = -2
)

type LinearLayout struct {
Expand Down Expand Up @@ -62,16 +62,16 @@ func (ll LinearLayout) Layout(gtx C, children ...layout.FlexChild) D {
}

func (ll LinearLayout) applyDimension(gtx *C) {
if ll.Width == MATCH_PARENT {
if ll.Width == MatchParent {
gtx.Constraints.Min.X = gtx.Constraints.Max.X
} else if ll.Width != WRAP_CONTENT {
} else if ll.Width != WrapContent {
gtx.Constraints.Min.X = ll.Width
gtx.Constraints.Max.X = ll.Width
}

if ll.Height == MATCH_PARENT {
if ll.Height == MatchParent {
gtx.Constraints.Min.Y = gtx.Constraints.Max.Y
} else if ll.Height != WRAP_CONTENT {
} else if ll.Height != WrapContent {
gtx.Constraints.Min.Y = ll.Height
gtx.Constraints.Max.Y = ll.Height
}
Expand Down

0 comments on commit a660698

Please sign in to comment.