Ignore:
Timestamp:
02/05/14 14:42:00 (10 years ago)
Author:
ngw8
Message:

Scrollbars now hidden from converted pages. Doesn't seem possible to completely remove them (so that the space they occupied collapses), only hide them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/io/WebParser.java

    r839 r840  
    5151import org.expeditee.items.widgets.JfxBrowser;
    5252import org.w3c.dom.Node;
    53 import org.w3c.dom.html.HTMLBodyElement;
    5453
    5554/**
     
    291290                                        browserWidget.setOverlayVisible(true);
    292291                                        browserWidget.setWebViewSize(FrameGraphics.getMaxFrameSize().getWidth() * 0.9, FrameGraphics.getMaxFrameSize().getHeight() * 0.9);
     292                                        browserWidget.setScrollbarsVisible(false);
    293293                                }
    294294                        });
     
    340340                                                        // it before adding it to the frame)
    341341                                                        webEngine.executeScript("cssHide.innerHTML = '';");
    342 
    343                                                         HTMLBodyElement doc = (HTMLBodyElement) webEngine.executeScript("document.body");
    344342
    345343                                                        JSObject window = (JSObject) webEngine.executeScript("window");
     
    681679                                browserWidget.setOverlayVisible(false);
    682680                                browserWidget.rebindWebViewSize();
     681                                browserWidget.setScrollbarsVisible(true);
    683682                        }
    684683                });
     684
    685685        }
    686686
Note: See TracChangeset for help on using the changeset viewer.