Menu Home

Can not scroll in body of email when previewing in EXM

Recently we were attempting to see how an email would look with tokens set. Some of the tokens were further down the email template and we were expecting to be able to scroll down and view them in the preview screen. Unfortunately, there is no way to scroll down. Bringing curser over body only allows you to select body editing which only shows tokens, ie $firstname$.

Sitecore support confirmed that this is an expected behavior but provided a way to achieve the functionality required. This was done within a Sitecore 9.0.2 instance.

  1. Navigate to “\sitecore\shell\client\Applications\ECM\EmailCampaign.Controls\MessageVariant” and open the “MessageVariant.css”
  2. Update css setting to:
.sc-MessageVariant [data-sc-id$=BodyHTMLBorder] {
position: relative;
border: 1px solid #cccccc !important;
overflow: scroll; //change hidden to scroll so there will be scroll
height: 400px;
}
.sc-MessageVariant .row .sc-frame {
min-height: 600px !important; // change it from 417px so you can see more content in a long email address
position: absolute;
width: 100% !important;
}

After making this simple change, we were able to scroll and see the entire template, with recipient tokens set, without issue. I hope someone finds this tidbit useful.

Categories: Uncategorized

omcbride

15+ year programming professional with 10+ years devoted to Sitecore development. I've been using the platform since Sitecore 6.0 and currently serve as a Technical Architect at Verndale.

Leave a Reply

Your email address will not be published. Required fields are marked *