add a hack to get the approximate size of camera preview fragment