Version: SmartClient Version: v12.1p_2020-07-31/PowerEdition Deployment (built 2020-07-31)
Our selectBoxItem class appears different in this version. Looks like this:
It used to look (2020-02-27) like this:
I tracked it down to selectBoxItem in our 2020-02-27 version was referencing CSS class selectItemText, whereas in 2020-07-31 it is using CSS class selectItemLiteText.
I see in the load_skin.js there is this code:
So I assume our application is now defaulting to the isc.minimalistTextControlAppearance == null case.
Also I see that in skin_style.css there is this comment /code:
What is the appropriate way of changing this behavior? Is it to override the check/setting in load_skin.js ? We may like to make use of the selectItemLiteText css style in the future so I don't want to rule out its usage in our projects permanently.
Thanks
Our selectBoxItem class appears different in this version. Looks like this:
It used to look (2020-02-27) like this:
I tracked it down to selectBoxItem in our 2020-02-27 version was referencing CSS class selectItemText, whereas in 2020-07-31 it is using CSS class selectItemLiteText.
I see in the load_skin.js there is this code:
Code:
// isc.minimalistTextControlAppearance (new property, consulted below) // - Show minimalist drop down controls by default? // When true, SelectItem and ComboBoxItems will appear with modern "flat" styling // including inline picker icon rather than picker icon button. // - Set to false to restore traditional appearance for these controls // -------------------------------------- if (isc.minimalistTextControlAppearance == null) { isc.minimalistTextControlAppearance = true; } and finally if (isc.SelectItem) { if (isc.minimalistTextControlAppearance) { isc.SelectItem.addProperties({ showOver:true, updateTextBoxOnOver:false, updateControlOnOver:true, height:22, pickerIconSrc:"[SKIN]/pickers/comboBoxPickerLite.png", pickerIconWidth:16, pickerIconHeight:18, valueIconSize:12, showFocusedPickerIcon:false, textBoxStyle:"selectItemLiteText", controlStyle:"selectItemLiteControl" }); } else { isc.SelectItem.addProperties({ height:22, pickerIconSrc:"[SKIN]/pickers/comboBoxPicker.png", pickerIconWidth:18, valueIconSize:12, showFocusedPickerIcon:false, textBoxStyle:"selectItemText" }); } }
Also I see that in skin_style.css there is this comment /code:
Code:
/* suppress borders on selectItem text - border is applied to control element also zero out right-padding so we don't have unnecessary gap between text and the down-pointing chevron */ .selectItemLiteText, .selectItemLiteTextRTL, .selectItemLiteTextFocused, .selectItemLiteTextFocusedRTL,
Thanks
Comment