B4J Question CSS bug or my error

Discussion in 'B4J Questions' started by ivanomonti, May 8, 2015.

  1. ivanomonti

    ivanomonti Well-Known Member Licensed User

    because changes to the css in debug mode at runtime (b4j - v3 Beta)

    runtime mode (font size, top button and field) (mac osx and windows) this windows seven pro

    2015-05-08_001558.png

    debug mode

    2015-05-08_001623.png
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    I don't see how the debugger can affect the CSS handling. Can you upload a small project that reproduces this issue?
     
  3. FabioRome

    FabioRome Member Licensed User

    Ciao Ivano,
    nel CSS per default la grandezza del font e' espressa in PT mentre sotto Linux la legge bene in PX:

    -fx-font-size: 24px; anziche' -fx-font-size: 24pt;

    Ciao Fabio.
     
    ivanomonti likes this.
  4. ivanomonti

    ivanomonti Well-Known Member Licensed User

    Yes Erel

    debug mode

    2015-05-08_114547.png

    runtime

    2015-05-08_114637.png
     

    Attached Files:

  5. ivanomonti

    ivanomonti Well-Known Member Licensed User

    Ciao Fabio, il problema cmq esiste anche su windows e non solo su mac :-(
     
  6. FabioRome

    FabioRome Member Licensed User

    I see well.
    execution runtime on Windows 7 Professional 32Bit , Java 7 U55
     

    Attached Files:

  7. rwblinn

    rwblinn Well-Known Member Licensed User

    Hi

    tested under win 8.1 with java 8u45 and both results debug and release mode are the same = no issues.
    What I get is are warnings in the log - something in the css file must be wrong
    Code:
    Program started.
    Mai 
    082015 4:35:25 PM javafx.scene.CssStyleHelper calculateValue
    WARNING: Caught java.lang.IllegalArgumentException: No radii value may be < 
    0' while calculating value for '-fx-background-radius' from rule '*.menu-button' in stylesheet file:/C:/Daten/b4/b4j/samples/TestTableView/TestCssB4j/Files/style-metro-ivan.css
    Mai 082015 4:35:26 PM javafx.scene.CssStyleHelper calculateValue
    WARNING: Caught java.lang.IllegalArgumentException: No radii value may be < 
    0' while calculating value for '-fx-background-radius' from rule '*.menu-button' in stylesheet file:/C:/Daten/b4/b4j/samples/TestTableView/TestCssB4j/Files/style-metro-ivan.css
     
  8. FabioRome

    FabioRome Member Licensed User

    same problem with Debian Linux
    Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
     
  9. ivanomonti

    ivanomonti Well-Known Member Licensed User

    traduci il tuo messaggio, mi stai dicendo che hai il mio problema ho gli stessi messaggi di rwblinn!!
     
  10. FabioRome

    FabioRome Member Licensed User

    su Debian Linux 7 con
    Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
    Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

    ho sia il problema delle tue schermate che tutti i messaggi di errore segnalati da rwblinn

    in debug funziona (ma sono in emulazione con wine) ma in runtime no.

    Sono pero' due problemi distinti. ho tolto gli errori sul css (che fondamentalemnte e' lo stondamendo dei pulsanti) ma il disallineamento nella maschera rimane
     
  11. ivanomonti

    ivanomonti Well-Known Member Licensed User

    Io ho tolto tutto, e funziona ho messo un css interno e va benissimo, ho cambiato le grafiche e non uso streeestyle
     
  12. FabioRome

    FabioRome Member Licensed User

    se vuoi te lo testo
     
  13. ivanomonti

    ivanomonti Well-Known Member Licensed User

    chiamami in privato...

    Skype ivanomonti
    facebook ivanoangelomonti
     
    FabioRome likes this.
  14. Erel

    Erel Administrator Staff Member Licensed User

    Please keep the discussion in English in this forum. You can make a new thread in the Italian forum.

    The difference is in Java 7 vs Java 8.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice