Make fabrikeditor variable height

Fabrikeditor will now grow to max-height and shrink back to original
height. Default max-height is twice original height.

Also de-duplicated code.
Merge pull request #952 from Sophist-UK/fabrikeditor_grows_vertically

Fabrikeditor grows vertically