public int maxHeightForWidgetPreview(int spanY) {
   return Math.min(mPreviewBitmapHeight, mWidgetSpacingLayout.estimateCellHeight(spanY));
 }