-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8
-
Component/s: javafx
VirtualFlow has unnecessary calls to addAllToPile() i.e.
public final BooleanProperty verticalProperty() {
if (vertical == null) {
vertical = new BooleanPropertyBase(true) {
@Override protected void invalidated() {
addAllToPile();
pile.clear();
sheetChildren.clear();
...
...
We can replace the addAllToPile with
cells.clear()
pile.clear()
...
...
public final BooleanProperty verticalProperty() {
if (vertical == null) {
vertical = new BooleanPropertyBase(true) {
@Override protected void invalidated() {
addAllToPile();
pile.clear();
sheetChildren.clear();
...
...
We can replace the addAllToPile with
cells.clear()
pile.clear()
...
...