Reporting a possible oversight?
I'm enjoying the new v12 sizing controls. Before I create any canvases, I do a global setting:
This works as expected for all, except for the AM/PM SelectItem of a TimePicker. The picker is only wide enough to show "A" or "P". The Hour & Minute items do seem to obey the resize settings.
I fixed it easily enough, but thought you might want to know.
Chrome Version 77.0.3865.90 (Official Build) (64-bit)
SmartClient Version: v12.0p_2019-10-06/PowerEdition Deployment (built 2019-10-06)
I'm enjoying the new v12 sizing controls. Before I create any canvases, I do a global setting:
Code:
int deltaPixels = 6; Canvas.resizeControls(deltaPixels); Canvas.resizeFonts(deltaPixels);
I fixed it easily enough, but thought you might want to know.
Code:
TimeItem sixMinuteIncrements = new TimeItem() {
{
setMinuteIncrement(6);
setAmpmItemProperties(new SelectItem() {
{
setWidth(60); // This fixes it
}
});
}
};
DateTimeItem dateTimeItemFrom = new DateTimeItem(REQUESTS.STARTDATETIME, "From") {
{
setRequired(Boolean.TRUE);
setUse24HourTime(Boolean.FALSE);
setValue(initialDateFrom);
setPickerTimeItemProperties(sixMinuteIncrements);
setWidth(260); // seems to work w/ v12 larger fonts/controls, accommodates widest date
// "12/22/2019 10:00 AM"
setValidators(validatorFrom);
setValidateOnChange(Boolean.TRUE);
...
}
};
SmartClient Version: v12.0p_2019-10-06/PowerEdition Deployment (built 2019-10-06)
Comment