firepad icon indicating copy to clipboard operation
firepad copied to clipboard

Unable to make firepad automatically resize to fit it's contents

Open axelson opened this issue 10 years ago • 2 comments

The following should work for allowing a firepad to automatically resize to fit it's contents ("By setting an editor's height style to auto and giving the viewportMargin a value of Infinity, CodeMirror can be made to automatically resize to fit its content.").

Reference: http://codemirror.net/demo/resize.html

However it does not work and you are still forced to scroll through the content. I've created a gist that illustrates the issue: https://gist.github.com/axelson/9b9154c37338b6fb74c8

axelson avatar Aug 12 '15 02:08 axelson

gist 404s! Can you make a JSFiddle?

vincentwoo avatar Aug 12 '15 09:08 vincentwoo

Any updates for this? I am also struggling to get this demo to work correctly.

priyadarshy avatar May 20 '17 00:05 priyadarshy