Skip to content

Commit ec8e1f1

Browse files
authored
Remove resource-intensive implementation, but keep API (#415)
* Remove resource-intensive implementation, but keep API Fix #414 * add TODO
1 parent b1befba commit ec8e1f1

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

rta/src/main/java/com/gluonhq/richtextarea/RichTextAreaSkin.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -989,21 +989,7 @@ void keyTypedListener(KeyEvent e) {
989989
}
990990

991991
private void computeFullHeight() {
992-
RichListCell cell = new RichListCell(RichTextAreaSkin.this);
993-
double rtaWidth = getSkinnable().prefWidth(-1);
994-
Scene scene = new Scene(cell, rtaWidth, 1000);
995-
if (getSkinnable().getScene() != null) {
996-
scene.getStylesheets().setAll(getSkinnable().getScene().getStylesheets());
997-
}
998-
double fullHeight = paragraphListView.getItems().stream()
999-
.mapToDouble(item -> {
1000-
cell.updateItem(item, false);
1001-
cell.applyCss();
1002-
cell.layout();
1003-
return cell.prefHeight(rtaWidth);
1004-
})
1005-
.sum();
1006-
fullHeightProperty.set(fullHeight);
992+
// TODO
1007993
}
1008994

1009995
private void populateContextMenu(boolean isEditable) {

0 commit comments

Comments
 (0)