Refresh layout when it is locked.