JCEF Content Misaligned

Having problems with building or using the JCEF Java binding? Ask your questions here.

JCEF Content Misaligned

Postby domramirez » Fri Jun 27, 2014 10:47 am

I have a Java 7 application which is using JCEF to draw html/css into two windows it launches. This works quite well in 4 of 5 PCs that I've run it on. In one case there are alignment issues with the rendered html. Successful runs include Windows 7/8/8.1. Unsuccessful run is 8.1 on an HP TouchSmart Envy, straight out of the box. Perhaps the only distinguishable differences are that this PC is new and that it has a touch screen.

As you can see in the screenshot (link below), the content is shifted upward while being additionally clipped at the right and bottom sides. This is true of both windows that the application opens. What's even stranger is that mouse events (such as the :hover effects on the buttons and click events) are received in their correct position -- clicking about two inches below "Start Presentation" fires the button's click event.

Frankly, I have no idea what to try next on this. I've tried installing and uninstalling graphics-related software, adjusting the screen resolution, adding and removing the second screen, restarting the pc, and updating the onboard graphics driver.

As I have no idea what else could be causing this inconsistency, any advice in troubleshooting this issue would be fantastic.

A Screenshot of the issue:
http://i.stack.imgur.com/DGyR1.jpg

A link to erroring device's specifications:
http://www.bestbuy.com/site/hp-envy-touchsmart-15-6-touch-screen-laptop-intel-core-i5-8gb-memory-750gb-hard-drive-natural-silver/5342018.p?id=1219120915962&skuId=5342018
domramirez
Newbie
 
Posts: 1
Joined: Fri Jun 27, 2014 10:42 am

Re: JCEF Content Misaligned

Postby magreenblatt » Fri Jun 27, 2014 11:53 am

Is the screen also hi-dpi? Sounds like https://code.google.com/p/chromiumembed ... il?id=1024.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 12 guests