Skip to content

Commit

Permalink
Updated HTMLScrollPaneSkin
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKirmaier committed Oct 20, 2023
1 parent 4858285 commit 4ab11f3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void setupHTMLView(WebAPI webapi) {
// DO CSS BRIDGE
PopupControl contentPage = new PopupControl();
contentPage.setSkin(new WeakPopupControlSkin(htmlViewContent));
contentPage.getProperties().put("APP", null);
String windowId = webapi.registerWindow(contentPage);

widthListener = (p, o, n) -> htmlViewContent.prefWidthProperty().set(n.doubleValue());
((Region) getNode()).widthProperty().addListener(new WeakChangeListener<>(widthListener));
Expand All @@ -131,8 +131,6 @@ public void setupHTMLView(WebAPI webapi) {
}
});

String windowId = webapi.registerWindow(contentPage);

String number = "" + new Random().nextInt(1000000);
String id = "scrollelem_" + number;
String idapp = "scrollelemapp_" + number;
Expand Down

0 comments on commit 4ab11f3

Please sign in to comment.