Added border radiuses to table when in a panel. Fixes #12461

Fixes #12461