@Override
    public void redraw() {
      super.redraw();
      View root = getRootView();
      // request layout the text with the width, according to scroll bar, is shown
      // it will be extended if scroll bar is not required in a result
      int width = TipUiSettings.getImageMaxWidth() - JBUI.scale(14);
      root.setSize(width, root.getPreferredSpan(View.Y_AXIS));
    }
@Override
    public void redraw()