detach the view from the parent before adding to borderView
TIMOB-12134-formatted the code as per the standard, removed the additional null check
Merge pull request #3809 from vishalduggal/timob-12134-30X

[TIMOB-12134] 3_0_X detach the view from the parent before adding to borderView