-
Bug
-
Resolution: Fixed
-
P3
-
fx1.2
-
Windows XP prof, marina b05
This is reproducible only with marina b05, not reproducible with franca.
HBox/VBox do not give correct value for boundsInLocal. To reproduce, run the below program. Click on the HBox which prints the value of boundsInLocal. Instead of giving a cumulative width of its nodes, boundsInLocal of HBox gives the width of only one node.
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.layout.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
import javafx.scene.input.*;
var hBox: HBox = HBox {
content: [Rectangle {
x: 0
y: 0
width: 50
height: 40
fill: Color.BLUE
}, Rectangle {
x: 0
y: 0
width: 50
height: 40
fill: Color.RED
}]
onMousePressed: function(e: MouseEvent) {
println("boundsInLocal {hBox.boundsInLocal}");
}
};
var scene: Scene = Scene {
content: hBox
};
Stage {
scene: Scene {
content: hBox
}
width: 200
height: 200
};
HBox/VBox do not give correct value for boundsInLocal. To reproduce, run the below program. Click on the HBox which prints the value of boundsInLocal. Instead of giving a cumulative width of its nodes, boundsInLocal of HBox gives the width of only one node.
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.layout.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
import javafx.scene.input.*;
var hBox: HBox = HBox {
content: [Rectangle {
x: 0
y: 0
width: 50
height: 40
fill: Color.BLUE
}, Rectangle {
x: 0
y: 0
width: 50
height: 40
fill: Color.RED
}]
onMousePressed: function(e: MouseEvent) {
println("boundsInLocal {hBox.boundsInLocal}");
}
};
var scene: Scene = Scene {
content: hBox
};
Stage {
scene: Scene {
content: hBox
}
width: 200
height: 200
};