[ListView] Selected item rendering has changed in horizontal ListView.

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: javafx
    • Environment:

      jdk 1.8.0-ea-b61

      In horizontal list view selected item was highlighted and surrounded with border. But now it is highlighted only.

      Please, look at:
      http://aurora.ru.oracle.com/slot-gw/115057.ManualSubmit-1/workDir/javafx/scene/control/test/ListView/HListViewAddRemoveTest_addAndInsert/javafx.scene.control.test.ListView.HListViewAddRemoveTest.addAndInsert.first.selected-expected.png
      http://aurora.ru.oracle.com/slot-gw/115057.ManualSubmit-1/workDir/javafx/scene/control/test/ListView/HListViewAddRemoveTest_addAndInsert/javafx.scene.control.test.ListView.HListViewAddRemoveTest.addAndInsert.first.selected.png
      http://aurora.ru.oracle.com/slot-gw/115057.ManualSubmit-1/workDir/javafx/scene/control/test/ListView/HListViewAddRemoveTest_addAndInsert/javafx.scene.control.test.ListView.HListViewAddRemoveTest.addAndInsert.first.selected-diff.png

      import javafx.application.Application;
      import javafx.geometry.Orientation;
      import javafx.scene.Scene;
      import javafx.scene.control.ListView;
      import javafx.scene.layout.VBox;
      import javafx.stage.Stage;

      public class HorizontalListView extends Application {

          @Override
          public void start(Stage stage) {
              VBox root = new VBox();
                      
              ListView<String> listView = new ListView<>();
              listView.setOrientation(Orientation.HORIZONTAL);
              
              for (int i = 0; i < 5; i++) { listView.getItems().add("item " + i); }
              
              root.getChildren().add(listView);
              
              stage.setScene(new Scene(root, 300, 250));
              stage.setTitle(System.getProperty("java.runtime.version") + "; " + System.getProperty("javafx.runtime.version"));
              stage.show();
          }

          public static void main(String[] args) {
              launch(args);
          }

      }

            Assignee:
            Jonathan Giles
            Reporter:
            Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: