What caused the Myanmar earthquake - and why did it cause a building in Bangkok to collapse?

The size of the earthquake and the length of the fault line it occurred on contributed to the devastation.

What caused the Myanmar earthquake - and why did it cause a building in Bangkok to collapse?
The size of the earthquake and the length of the fault line it occurred on contributed to the devastation.