I created an HTML based AIR application with a transparent window that does not use system chrome. I utilized JavaScript and CSS3 to add a drop-shadow effect to the window, adjusting the shadow based on window focus. When the window is maximized, the shadow disappears entirely.
The visual representation of the application is shown in the wireframe diagram below:
The red section represents the <html>
container itself. The blue box indicates the application content area (a basic <div>
), while the black border with a green shadow represents a positioned absolute <div>
acting as the application container in my design.
The black border surrounding the blue box features a subtle green shadow along the outer edges of the page.
An issue arises because AIR considers the <html>
element as the application edge rather than the container <div>
for the black border. This prevents the application from touching the screen's edge in AIR.
Do you have any suggestions on how to address this challenge? My initial thought was using complex JavaScript to offset the application somehow... Has anyone else encountered this problem before?