SmartClient Version: v9.0p_2013-12-11/LGPL Development Only (built 2013-12-11)
Browser IE11
I am setting the default cell style on FormItem to add some common padding. I have cases where I don't want any padding on form items, so I set up a second form cell style that doesn't have any padding and when I don't want the padding I override the cell style on individual form item instances. This has worked fine for me on every control I've tried except the DateTimeItem. In this case, the DOM that is created ends up with an element that uses my class with no padding, but it also has an inner element in the DOM that still refers to the FormItem default cell style class I set up. The result is that with the DateTimeItem I still end up with the padding showing.
Sample source code is attached, and the styles used are:
The resulting display shows padding and has elements in the DOM using both styles. What I expect is to not see any padding and have the DOM only reference the style with no padding.
Browser IE11
I am setting the default cell style on FormItem to add some common padding. I have cases where I don't want any padding on form items, so I set up a second form cell style that doesn't have any padding and when I don't want the padding I override the cell style on individual form item instances. This has worked fine for me on every control I've tried except the DateTimeItem. In this case, the DOM that is created ends up with an element that uses my class with no padding, but it also has an inner element in the DOM that still refers to the FormItem default cell style class I set up. The result is that with the DateTimeItem I still end up with the padding showing.
Sample source code is attached, and the styles used are:
Code:
.formItemDefault { padding: 10px; } .dateTimeFormItem { padding: 0 }
Comment