code: public void adjustToParentHeight() {
          Element tableElt = getElement();
          Element wrapper = null;
          Element scrollBody = null;
          Element elt = tableElt.getParentElement();
          while (elt != null) {
              if (scrollBody == null) {
                  if (JQMCommon.hasStyle(elt, SCROLL_BODY)) {
                      scrollBody = elt;
                  }
              } else if (wrapper == null) {
                  if (JQMCommon.hasStyle(elt, WRAPPER)) {
                      wrapper = elt;
                      break;
                  }
              }
              elt = elt.getParentElement();
          }
          if (wrapper != null && scrollBody != null) {
              Element wrapParent = wrapper.getParentElement();
              if (wrapParent != null) {
                  int h = wrapParent.getClientHeight();
                  int wrapH = wrapper.getOffsetHeight();
                  String s = scrollBody.getStyle().getHeight();
                  s = StrUtils.getDigitsOnly(s);
                  if (!Empty.is(s)) {
                      int scrollBodyH = Integer.parseInt(s);
                      int newH = (h - wrapH) + scrollBodyH - 1;
                      if (newH < 0) newH = 0;
                      if (scrollYnum > 0 && newH < scrollYnum) newH = scrollYnum;
                      scrollBody.getStyle().setHeight(newH, Unit.PX);
                  }
              }
          }
      }
docs: Adjusts height to parent's height.
  <br> It's one time action, and works regardless of useParentHeight current value.
  <br> Only works when scrollY is set to some value, for example: 1px
  <br> And scrollY value will be used as min-height for scrolling area.