You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #140 (add support for dynamic locale), I'm running into a problem with the Preferences dialog in Studio. The sim adds one subpanel that contains a title ("Dipole direction") and a radio button group:
The subpanel is implemented in DipoleDirectionControl.js, the radio button group in DipoleDirectionRadioButtonGroup.js.
After opening the Preferences dialog, under moleculePolarity.general.view.navigationBar.preferencesButton.preferencesDialogCapsule.preferencesDialog.preferencesPanels.generalPreferencesPanel.simPreferences you'll see this subtree:
Four problems, all in DipoleDirectionRadioButtonGroup.js:
(1) DerivedProperty negativeToPositiveRadioButton.negativeToPositiveStringProperty is missing from the tree.
(2) negativeToPositiveRadioButton.labelText is missing child textProperty that links to negativeToPositiveRadioButton.negativeToPositiveStringProperty.
(3) Similar to (1), DerivedProperty positiveToNegativeRadioButton.positiveToNegativeStringProperty is missing from the tree.
(4) Similar to (2), positiveToNegativeRadioButton.labelText is missing child textProperty that links to positiveToNegativeRadioButton.positiveToNegativeStringProperty.
Am I hitting some limitation/problem with PhetioCapsule?
The text was updated successfully, but these errors were encountered:
I thought the problem might be caused by instantiating DerivedProperty inside of a dynamic component. So I temporarily moved negativeToPositiveStringProperty and positiveToNegativeStringProperty to MPConstants. The behavior was unchanged.
Fixed in the commit, please review. Also, should we convert StringUtils to TypeScript and ban certain keys/value types? But perhaps this will be better addressed in PatternStringProperty which @jonathanolson is working on.
Related to #140 (add support for dynamic locale), I'm running into a problem with the Preferences dialog in Studio. The sim adds one subpanel that contains a title ("Dipole direction") and a radio button group:
The subpanel is implemented in DipoleDirectionControl.js, the radio button group in DipoleDirectionRadioButtonGroup.js.
After opening the Preferences dialog, under
moleculePolarity.general.view.navigationBar.preferencesButton.preferencesDialogCapsule.preferencesDialog.preferencesPanels.generalPreferencesPanel.simPreferences
you'll see this subtree:Four problems, all in DipoleDirectionRadioButtonGroup.js:
(1) DerivedProperty
negativeToPositiveRadioButton.negativeToPositiveStringProperty
is missing from the tree.(2)
negativeToPositiveRadioButton.labelText
is missing childtextProperty
that links tonegativeToPositiveRadioButton.negativeToPositiveStringProperty
.(3) Similar to (1), DerivedProperty
positiveToNegativeRadioButton.positiveToNegativeStringProperty
is missing from the tree.(4) Similar to (2),
positiveToNegativeRadioButton.labelText
is missing childtextProperty
that links topositiveToNegativeRadioButton.positiveToNegativeStringProperty
.Am I hitting some limitation/problem with PhetioCapsule?
The text was updated successfully, but these errors were encountered: