js: debug computation of content minheight