code: protected void repositionButtons() {
  
          for (Map.Entry<String, CmsDirectEditButtons> entry : m_directEditButtons.entrySet()) {
              CmsDirectEditButtons buttons = entry.getValue();
              Element tag = buttons.getMarkerTag();
              CmsPositionBean newPos = CmsDomUtil.getEditablePosition(tag);
              m_positions.put(tag.getId(), newPos);
          }
          CmsEditablePositionCalculator posCalc = new CmsEditablePositionCalculator(m_positions);
          m_buttonPositions = posCalc.calculatePositions();
          for (CmsDirectEditButtons buttons : m_directEditButtons.values()) {
              String id = buttons.getMarkerTag().getId();
              buttons.setPosition(
                  m_positions.get(id),
                  m_buttonPositions.get(id),
                  buttons.getMarkerTag().getParentElement());
          }
  
      }
docs: Repositions the direct edit buttons.<p>