code: public void resetPosition() {
  
          // fail if no positioning parent given
          assert m_positioningParent != null;
          if (m_positioningParent != null) {
              setPosition(m_positioningParent.getOffsetHeight(), m_positioningParent.getOffsetWidth(), 0, 0);
          }
      }
docs: Recalculates the position and dimension when a positioning parent is given.<p>