Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8087930

Java Deployment Toolkit adds whitespace to the HTML page when using Doctype

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 7u6
    • deploy
    • FF, Chrome

      Java deployment Toolkit adds a hidden embed element to the page when you deploy a javafx applet.
      When I have a DOCTYPE declaration into the page, the browser seems to add whitespace around this embed element due to being more strict.
      The problem is easily reproducible when the Html page is larger than the viewport (i.e. you need to scroll).... now, include the dtjava.js at the bottom of the page -> Result whitespace is added at the bottom

      The workaround is to explicitly set the display CSS property to none:

      #dtjavaPlugin { display: none; }

            herrick Andy Herrick (Inactive)
            kiriljfx Kiril (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: