I want my button with its image to be a square 64x64 pixel big. But There is som weird border on the sides of the image. (All buttons have the same issue with side margin/border/padding, one of them is sbox 96x96 though)
SNew(SVerticalBox)+ SVerticalBox::Slot()
.Padding(ButtonPadding)
.HAlign(HAlign_Center)
[
SNew(SBox)
.HeightOverride(64)
.WidthOverride(64)
.VAlign(VAlign_Fill)
.HAlign(HAlign_Fill)
[
SNew(SButton)
.VAlign(VAlign_Fill)
.HAlign(HAlign_Fill)
.ContentPadding(FMargin(0, 0))
[
SNew(SBox)
.HeightOverride(64)
.WidthOverride(64)
.VAlign(VAlign_Fill)
.HAlign(HAlign_Fill)
[
SNew(SBorder)
.BorderImage(FMenuStyles::Get().GetBrush(TEXT("SB_DoorIcon")))
.Padding(0)
]
]
]
]
Adding the SBox withing the SBox was my latest attempt. Tried that because I saw that the Widget Reflector added it anyways.