Using slate SBorder Brush

I tried to make make a SBorder but I got some problem with it.

The border appears but its sides are not being scale with relative to any content present inside it.

Here is my code

		+ SOverlay::Slot()
			.HAlign(HAlign_Right)
			.VAlign(VAlign_Top)
			[
				SNew(SBorder)
				.BorderImage(&BallHUD->ScoreBoardBrush)
				.Padding(FMargin(0, 5, 5, 0))
				.Content()
				[
					SNew(SBox)
					.Padding(FMargin(2, 2, 2, 2))
					[
						SNew(STextBlock)
						.Text(FText::FromString("9999"))
					]
				]
			]

This is my slate brush

But this is how it appears in game

14339-capture2.jpg

I think there is a bug with the SBorder.

It doesn’t take into account STextblocks but if I place that into a SButton it works.

Something like this. But I don’t want to use SButton cause I don’t have any click functionality needed. So can I replace it with anything else but have the same functionality?

		SNew(SBorder)
		.BorderImage(&BallHUD->ScoreBoardBrush)
		.Content()
		[
			SNew(SButton)
			.ButtonStyle(&BallHUD->MenuButtonStyle)
			.Text(FText::FromString("9999"))
			//SNew(STextBlock)
			//.Text(FText::FromString("9999"))
		]
	]
];

Well its my fault. I first thought the SBorder changes its size based on the content present inside it. Well i was partially correct. But I didn’t knew we have to add .padding to it to work good.

Resolved.