B4J Question CSS bug or my error

ivanomonti

Expert
Licensed User
Longtime 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
 

FabioRome

Member
Licensed User
Longtime 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.
 
Upvote 0

ivanomonti

Expert
Licensed User
Longtime User
Yes Erel

debug mode

2015-05-08_114547.png


runtime

2015-05-08_114637.png
 

Attachments

  • TestCssB4j.zip
    287.9 KB · Views: 152
Upvote 0

ivanomonti

Expert
Licensed User
Longtime 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.

Ciao Fabio, il problema cmq esiste anche su windows e non solo su mac :-(
 
Upvote 0

FabioRome

Member
Licensed User
Longtime User
I see well.
execution runtime on Windows 7 Professional 32Bit , Java 7 U55
 

Attachments

  • Area schermo-001.jpg
    Area schermo-001.jpg
    39.2 KB · Views: 164
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime 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
B4X:
Program started.
Mai 08, 2015 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 08, 2015 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
 
Upvote 0

FabioRome

Member
Licensed User
Longtime 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)
 
Upvote 0

ivanomonti

Expert
Licensed User
Longtime 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)

traduci il tuo messaggio, mi stai dicendo che hai il mio problema ho gli stessi messaggi di rwblinn!!
 
Upvote 0

FabioRome

Member
Licensed User
Longtime 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
 
Upvote 0

ivanomonti

Expert
Licensed User
Longtime User
Io ho tolto tutto, e funziona ho messo un css interno e va benissimo, ho cambiato le grafiche e non uso streeestyle
 
Upvote 0
Top