LT
Leaning TechnologiesTangoLock
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•102d 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•101d ago
Thanks, pointed me in the right place and have it working now.
The home of Cheerp, CheerpJ, and CheerpX. Chat about virtual machines, compilers, and WebAssembly!
744Members
View on DiscordWant results from more Discord servers?
More PostsProblems with CheerpjHello, I am trying to get my Java app running in CheerPJ - I was successful in creating a simple "HeCache Results for Faster Startup?Hello new user here. Performing initial research into potential commercial application usage.
1) AmUnknownHostException happened when the Java application connect to serverUnknownHostException happened when the Java application connect to server. The host name is the sameHTTP server returned compressed partial data. That should not happen. CheerpJ cannot run.Browser shows error "HTTP server returned compressed partial data. That should not happen. CheerpJ cAccesing the standard out and standard error stream from the Java processHow do I from javascript access the output streams from the started Java process?Any plan on adding internet access without Tailscale?Hi there ! Do you plan on adding internet access without the need to install Tailscale etc, that wou