boolean () { if (getWidth() < finalMinimumRightSize * 2) { final int left = getWidth() - finalMinimumRightSize; final float newProportion; if (left < 0) { newProportion = 0.2f; } else { newProportion = ((float) left / getWidth()); } splitter.setProportion(newProportion); } return true; }