bitstormFA / jlatexmathfx

A Javafx Control to render LaTeX math formula
GNU General Public License v2.0
28 stars 10 forks source link

Control does not show when embedded in a hierarchy of nodes. #7

Open bowring opened 6 years ago

bowring commented 6 years ago

version 0.3.3 Java Version: 1.8.0_144 OS: Mac OS X 10.13.2

The FXApp test file works great out of the box. However, if the VBox pane is wrapped in anything else such as a Pane or AnchorPane, the LatexMathControl disappears. The same holds if the VBox is replaced with a StackPane. Seems like a skin problem, but I can't see the issue. Ideas?

        pane.getChildren().addAll(lc, lc2);
        // altered code follows
        Pane wrappingPane = new Pane();
        wrappingPane.getChildren().add(pane);

        Scene scene = new Scene(wrappingPane);

Cheers, Happy New Year, and thank you for the great work!

OscarEReyes commented 6 years ago

This will sound like a weird suggestion, but try giving the LateXMathControl instance negative padding.

runnermann commented 5 years ago

Any progress on this? It looks as if Skin isn't set in the FXApp test file. Also attempted the suggestion by OscarEReyes and had no success. Thanks.