Add preferredWidth/Height option
Fix a bug that title doesn't appear