same in boxLayout.js