Although in vanilla js this works fine (I get the width and height which I set):
var canvas = document.createElement(\'canvas\'); canvas.height = 100; canvas.