Skip to content

Commit

Permalink
remove shorthand constructor until we can think of a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth committed May 5, 2024
1 parent 2a8ca26 commit de619cc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions layout/custompaddedlayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ func NewCustomPaddedLayout(padTop, padBottom, padLeft, padRight float32) fyne.La
}
}

// NewSquareCustomPaddedLayout creates a new CustomPaddedLayout instance
// with the same custom padding applied to all four sides.
//
// Since: 2.5
func NewSquareCustomPaddedLayout(pad float32) fyne.Layout {
return CustomPaddedLayout{
TopPadding: pad,
BottomPadding: pad,
LeftPadding: pad,
RightPadding: pad,
}
}

// Layout is called to pack all child objects into a specified size.
// For CustomPaddedLayout this sets all children to the full size passed minus the given paddings all around.
func (c CustomPaddedLayout) Layout(objects []fyne.CanvasObject, size fyne.Size) {
Expand Down

0 comments on commit de619cc

Please sign in to comment.