Minor Anchor Tweak - Scrolling Fix
For some reason, my version of Anchor completely bugs out when you start increasing the size of the text input beyond a certain point. This was making it really hard to write longer articles, so I tracked down the fix.
In '/anchor/views/assets/js/text-resize.js', the resize
function code needs to be changed to:
function resize(e) {
var scrollPos = document.scrollingElement.scrollTop;
$text.height('auto');
$text.height($text.prop('scrollHeight') + 'px');
document.scrollingElement.scrollTop = scrollPos;
}
The previous code was using a scrollTop()
function that didn't work on a body with a height of 100%.