Fix Toolkit method computeLayout()