A building panel, such as a floor panel or wall panel, has a first mechanical locking device at a respective first edge