Autofit scroll bar right margin issue

Jul 07, 2021

As shown below, the Format Shape > Text box > Margins > Right value pushes the autofit scroll bar to left. This can hamper readability on some lines if the scroll bar is almost touching the text. When we set the right margin value, we would prefer to have the scroll bar to be aligned against the right side of the text box all the way, and only the text will be that far from the right edge of the text box. 

An autofit scrollbar is pushed to the left inside a text box based on the right margin value.

6 Replies
Robert Lengacher

Just to clarify. The scroll bar should not be shifted in any direction based on the margin settings (padding?). For left-to-right text, I would prefer to see the scroll bar aligned to the right edge of the text box, and the right margin value would only apply to the text inside the scrolling text box. This would ensure that instructional designers have control over how close text is to the scroll bar.

Alternatively, maybe there could be a minimum margin to the left of the scroll bar (1 em?) to ensure that the scroll bar will never touch or obscure adjacent text.

SOLET Lab

This is quite annoying. This issue reduces the readability of the text. Unfortunately, this problem still exits. One solution is to add "margin-right: 15px" in the text div box.  This solution is not ideal. but at least leave a little bit space between the text and the scrollbar. 

What you can do is creating a JS trigger on your slide and letting it fire when the page start to load.  Add this code to the JS trigger you created: 

var x=document.getElementsByClassName("textlib-content-wrap");
x[0].style.marginRight="15px";

This will add 15 px to the right of the text box and leave a little bit space between the text and the scrollbar.