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

WebView: setting page fill has no effect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx21
    • javafx
    • None
    • web

      Setting page fill property on WebView with no URL or content loaded has no effect.
      To reproduce: run the attached SCCE, click on [TogglePageFill] button.

      Expected: WebView acquires background color.
      Observed: no change in background/page fill until an html content is loaded.

      If the [LoadHTML] button is pressed before toggling the fill color, all is well.

      One possible workaround might be setting some empty content like `<html></html>` right after instantiation of the WebView. This may or may not produce the desired result depending on how quickly WebView gets initialized, so there might be a visible delay and flicker.
      Another workaround might be to place a Pane with the desired background underneath the WebView.

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: