We generalise a result of Chern [‘A curious identity and its applications to partitions with bounded part differences’, New Zealand J. Math. 47 (2017), 23–26] on distinct partitions with bounded difference between largest and smallest parts. The generalisation is proved both analytically and bijectively.