Fix #253 by adding optional boolean argument to setLayout() to turn off layout cascading.