Skip to content

Commit

Permalink
image: Fix layout width.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins authored and dreacot committed Sep 26, 2023
1 parent 790271a commit 93bfdda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/cryptomaterial/image.go
Expand Up @@ -57,7 +57,7 @@ func (img *Image) LayoutSize(gtx C, size unit.Dp) D {
}

func (img *Image) LayoutSize2(gtx C, width, height unit.Dp) D {
dst := image.NewRGBA(image.Rectangle{Max: image.Point{X: int(width), Y: int(height * 2)}})
dst := image.NewRGBA(image.Rectangle{Max: image.Point{X: int(width * 2), Y: int(height * 2)}})
draw.BiLinear.Scale(dst, dst.Bounds(), img, img.Bounds(), draw.Src, nil)

i := widget.Image{Src: paint.NewImageOp(dst)}
Expand Down

0 comments on commit 93bfdda

Please sign in to comment.