Stretch to Fit Height Issue

Running a basic application in the example html provided on the CheerpJ website. My html code is effectively identical to the 'basic HTML example ' with the exception of using my own JAR files. Issue: I am attempting to fill the frame with cheerpjCreateDisplay(-1, -1, document.body). This results in the CheerpJ work area compressing into a single line at the top of the screen, it is treating -1 Height as, well, negative 1 instead of filling available area. -1 for Width works perfectly, no issue. non-negative values for Height work perfectly, no issue. This is occurring in Chrome and Edge browsers. Known issue? Am I missing something basic? I surmise that since the Width is expanding correctly that my syntax is correct.
apignotti
apignotti102d ago
This is not a CJ problem, but a normal HTML behaviour. You need to explicitly set the body height to 100%. This is a very common mistake and you can find plenty of guides on the internet
TangoLock
TangoLock101d ago
Thanks, pointed me in the right place and have it working now.