added pref to limit object constrain in window