/**
  * Workaround for JTextComponents allowing the caret to be rendered entirely off-screen if the
  * entire "previous" character fit entirely.
  *
  * @return The amount of space to add to the x-axis preferred span.
  */
 private int getRhsCorrection() {
   int rhsCorrection = 10;
   if (host != null) {
     rhsCorrection = host.getRightHandSideCorrection();
   }
   return rhsCorrection;
 }