Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SceneBuilder gets "stuck" on a specific pane of accordion #800

Open
wheezil opened this issue Feb 8, 2025 · 0 comments
Open

SceneBuilder gets "stuck" on a specific pane of accordion #800

wheezil opened this issue Feb 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@wheezil
Copy link

wheezil commented Feb 8, 2025

SceneBuilder gets "stuck" on a specific pane of accordion

Expected Behavior

Accordion container should allow activation of any panel when designing.

Current Behavior

Once an accordion panel is selected in the designer, you cannot select other panels without switching tabs first.

Steps to Reproduce

Save the enclosed FXML to a file and load it.

<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.scene.control.Accordion?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TitledPane?>
<?import javafx.scene.layout.AnchorPane?>

<TabPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="847.0" prefWidth="1042.0" tabClosingPolicy="UNAVAILABLE" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="net.redpoint.rpdm.irdemo.DemoController">
   <tabs>
      <Tab text="Rulesets">
        <content>
          <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
               <children>
                  <SplitPane dividerPositions="0.3541666666666667" layoutX="200.0" layoutY="67.0" prefHeight="160.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                    <items>
                      <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
                           <children>
                              <SplitPane dividerPositions="0.36073825503355705" layoutX="8.0" layoutY="56.0" orientation="VERTICAL" prefHeight="200.0" prefWidth="160.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                <items>
                                  <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">
                                       <children>
                                          <ListView fx:id="ruleset_list" layoutX="-13.0" layoutY="-40.0" prefHeight="164.0" prefWidth="250.0" AnchorPane.bottomAnchor="48.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
                                          <Button layoutX="184.0" layoutY="174.0" mnemonicParsing="false" onAction="#onRefreshRulesets" text="Refresh" AnchorPane.bottomAnchor="13.0" AnchorPane.rightAnchor="14.0" />
                                       </children>
                                    </AnchorPane>
                                  <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">
                                       <children>
                                          <ListView fx:id="ruleset_versions" layoutX="-13.0" layoutY="21.0" prefHeight="200.0" prefWidth="200.0" AnchorPane.bottomAnchor="50.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
                                          <Button fx:id="ruleset_delete_button" layoutX="184.0" layoutY="354.0" mnemonicParsing="false" onAction="#onDeleteVersion" text="Delete" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="15.0" />
                                          <Button layoutX="114.0" layoutY="354.0" mnemonicParsing="false" onAction="#onRefreshRulesetVersions" text="Refresh" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="80.0" />
                                       </children>
                                    </AnchorPane>
                                </items>
                              </SplitPane>
                           </children>
                        </AnchorPane>
                      <AnchorPane fx:id="text" minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
                           <children>
                              <TextArea fx:id="ruleset_text" layoutX="94.0" layoutY="66.0" prefHeight="200.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
                           </children>
                        </AnchorPane>
                    </items>
                  </SplitPane>
               </children>
            </AnchorPane>
        </content>
      </Tab>
       <Tab text="Impact Jobs">
           <content>
               <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
               <children>
                  <SplitPane layoutX="370.0" layoutY="396.0" prefHeight="160.0" prefWidth="200.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                    <items>
                      <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
                           <children>
                              <SplitPane dividerPositions="0.48525798525798525" layoutX="440.0" layoutY="247.0" orientation="VERTICAL" prefHeight="200.0" prefWidth="160.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                                <items>
                                  <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">
                                       <children>
                                       </children>
                                    </AnchorPane>
                                  <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">
                                       <children>
                                       </children>
                                    </AnchorPane>
                                </items>
                              </SplitPane>
                           </children>
                        </AnchorPane>
                    </items>
                  </SplitPane>
               </children>
               </AnchorPane>
           </content>
       </Tab>
      <Tab text="Untitled Tab">
        <content>
          <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
               <children>
                  <Accordion layoutX="177.0" layoutY="205.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
                    <panes>
                      <TitledPane animated="false" text="Launch impact job">
                        <content>
                            <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">
                                <children>
                                    <Label layoutX="14.0" layoutY="6.0" text="Run an experimental impact job" />
                                    <ComboBox fx:id="impact_jobs_ir" layoutX="14.0" layoutY="31.0" onAction="#onSelectImpactJobsIr" prefWidth="150.0" promptText="Choose IR" />
                                    <ListView fx:id="impact_jobs_experiment" layoutX="14.0" layoutY="96.0" prefHeight="242.0" prefWidth="248.0" AnchorPane.bottomAnchor="54.0" AnchorPane.topAnchor="96.0" />
                                    <Label layoutX="14.0" layoutY="68.0" text="Choose experiment" />
                                    <Label layoutX="281.0" layoutY="35.0" text="Differences" />
                                    <TextArea fx:id="impact_jobs_differences" layoutX="341.0" layoutY="56.0" prefHeight="319.0" prefWidth="739.0" AnchorPane.bottomAnchor="17.0" AnchorPane.leftAnchor="281.0" AnchorPane.rightAnchor="18.0" AnchorPane.topAnchor="56.0" />
                                    <Button fx:id="impact_jobs_launch" layoutX="14.0" layoutY="352.0" mnemonicParsing="false" onAction="#onLaunchImpactJob" text="Launch impact job" AnchorPane.bottomAnchor="15.0" />
                                </children>
                            </AnchorPane>
                        </content>
                      </TitledPane>
                      <TitledPane animated="false" text="Manage Impact Jobs">
                        <content>
                            <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="100.0" prefWidth="160.0">
                                <children>
                                    <Label layoutX="13.0" layoutY="67.0" prefHeight="17.0" prefWidth="40.0" text="Active" />
                                    <ListView fx:id="impact_jobs_active_list" layoutX="13.0" layoutY="84.0" prefHeight="83.0" prefWidth="226.0" />
                                    <Label layoutX="270.0" layoutY="26.0" text="Job messages" />
                                    <TextArea fx:id="impact_jobs_messages" editable="false" layoutX="270.0" layoutY="43.0" prefHeight="323.0" prefWidth="374.0" AnchorPane.bottomAnchor="50.0" AnchorPane.leftAnchor="270.0" AnchorPane.rightAnchor="394.0" AnchorPane.topAnchor="43.0" />
                                    <Button layoutX="661.0" layoutY="377.0" mnemonicParsing="false" onAction="#onStartImpactReview" text="Start impact review" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="259.0" />
                                    <Label layoutX="659.0" layoutY="26.0" text="Result summary" AnchorPane.rightAnchor="294.0" />
                                    <TextArea fx:id="impact_jobs_summary" editable="false" layoutX="659.0" layoutY="42.0" prefHeight="321.0" prefWidth="367.0" AnchorPane.bottomAnchor="53.0" AnchorPane.rightAnchor="12.0" AnchorPane.topAnchor="42.0" />
                                    <Label layoutX="14.0" layoutY="174.0" text="Complete" />
                                    <ListView fx:id="impact_jobs_complete_list" layoutX="14.0" layoutY="192.0" prefHeight="224.0" prefWidth="223.0" AnchorPane.bottomAnchor="29.0" AnchorPane.topAnchor="192.0" />
                                    <Button layoutX="268.0" layoutY="375.0" mnemonicParsing="false" onAction="#onAbortImpactJob" text="Abort active job" AnchorPane.bottomAnchor="16.0" />
                                    <Button layoutX="14.0" layoutY="31.0" mnemonicParsing="false" onAction="#onRefreshImpactJobs" text="Refresh impact jobs" />
                                </children>
                            </AnchorPane>
                        </content>
                      </TitledPane>
                      <TitledPane animated="false" text="Project Log Details">
                        <content>
                          <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0" />
                        </content>
                      </TitledPane>
                    </panes>
                  </Accordion>
               </children>
            </AnchorPane>
        </content>
      </Tab>
   </tabs>
</TabPane>

Go to "untitled tab"
Select either the first or second accordion pane. It will expand
Attempt to select the other panel. Nothing happens.
However, if you switch tabs, you can get to the other panel.

Your Environment

Windows 11 pro x64, 32 vcpus, 64GB memory
SceneBuilder version 23.0.1

Workaround

Switch tabs and come back to accordion

Screenshots

Second panel selected

Image

Attempt to select first panel

Image

Switch tabs, come back, now I see the first panel

Image

@wheezil wheezil added the bug Something isn't working label Feb 8, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant