Flex の ComboBox の textInputStyleName スタイルプロパティが動的変更に対応していない件

July 14, 2009

対応していないというかバグだと思う。
ComboBox というか ComboBase に内包する TextInput のスタイル名を指定できる textInputStyleName スタイルプロパティがある。これが creationChildren でしか設定処理が走らない模様。
よって、後から親(ComboBox, DateField など)の styleName プロパティを変えたとして、そのスタイル定義に textInputStyleName 含まれていてもそれが反映されない。

.normalTextInput {
/* 省略 /
}
.afterTextInput {
/\
省略 */
}
ComboBox {
textInputStyleName: normalTextInput;
}
.afterComboBox {
textInputStyleName: afterTextInput;
}

上記の定義があったとして、

comboBox.styleName = “afterComboBox”;

と動的に設定しても comboBox 内の TextInput に afterTextInput のスタイルは反映されない。

tilfin freelance software engineer