code: public static boolean isSmall(Widget widget) {
  
          assert widget.isAttached();
          return (CmsPositionBean.generatePositionInfo(widget.getElement()).getHeight() < NECESSARY_HEIGHT)
              && (CmsPositionBean.getBoundingClientRect(widget.getElement()).getHeight() < NECESSARY_HEIGHT);
  
      }
docs: Checks if  a given widget counts as 'small'.<p>
  
  @param widget the widget to check
  
  @return  true if the widget is small