detach the view from the parent before adding to borderView
[TIMOB-12397] Set button frame in our layout cycle
TIMOB-12134-formatted the code as per the standard, removed the additional null check
Merge pull request #3769 from vishalduggal/timob-12397

[TIMOB-12397] Set button frame in our layout cycle
Merge pull request #3752 from salachi/TIMOB-12134-borderWidth

detach the view from the parent before adding to borderView