Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8186176

Tab Menu in TabPane is cropped

XMLWordPrintable

    • b08
    • generic
    • generic

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      When there is an additional style sheet defined, no matter, if it really exists or if it has any content, there's a bug in the TabPane, when it has so many tabs, that the Tab Menu on top right corner is displayed (to select hidden tabs).

      When clicking this menu at least twice, the drop shadow starts to toggle from visible to non-visible.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the code and click the drop down arrow in the Tab Header Area multiple times so that the menu is shown.




      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No toggling of the drop shadow, or drop down menu is not cropped.
      ACTUAL -
      Menu is cropped.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.Tab;
      import javafx.scene.control.TabPane;
      import javafx.stage.Stage;

      public class TestApp extends Application {
          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(Stage stage) {

              TabPane tabPane = new TabPane();
              for (int i = 0; i < 20; i++) {
                  tabPane.getTabs().add(new Tab("Tab " + i));
              }
              Scene scene = new Scene(tabPane, 250, 150);
              scene.getStylesheets().addAll("styles.css");
              stage.setScene(scene);
              stage.show();
          }
      }
      ---------- END SOURCE ----------

            arapte Ambarish Rapte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: