Fix #109 by setting preferredSize explicitly