Hi, after upgrading to 13.1 we noticed that some buttons had increased heights after we upgraded our skin to 13.1 Like this:

Now, i have no idea if i'm doing something wrong now, or before. All i know is that we're using iButton and it's larger than in 13.0.
I notice that the "isc.Button.addproperties" height parameter affects ibutton to a larger extent than the regular button class, not sure if it was like this before.
I'm pretty sure that we haven't changed any button-related stuff in load_skin compared to 13.0.
Any idea what could cause this? The only way i've found to get it back to the way it was is to manually call .setHeight on all IButtons, but i'd rather not do that if i can avoid it.
EDIT: in 13.1, the Button in the screenshot above has 10px added to the height of the button height in the load_skin, whereas iButton has 20px added to it. Not sure where these values come from? Padding for the .button style in the css is 6, so it's not that.
code to create the buttons:
load_skin:
Now, i have no idea if i'm doing something wrong now, or before. All i know is that we're using iButton and it's larger than in 13.0.
I notice that the "isc.Button.addproperties" height parameter affects ibutton to a larger extent than the regular button class, not sure if it was like this before.
I'm pretty sure that we haven't changed any button-related stuff in load_skin compared to 13.0.
Any idea what could cause this? The only way i've found to get it back to the way it was is to manually call .setHeight on all IButtons, but i'd rather not do that if i can avoid it.
EDIT: in 13.1, the Button in the screenshot above has 10px added to the height of the button height in the load_skin, whereas iButton has 20px added to it. Not sure where these values come from? Padding for the .button style in the css is 6, so it's not that.
code to create the buttons:
Code:
VLayout body = new VLayout(); Button test = new Button("Button"); IButton test2 = new IButton("IButton");//test.setAutoFit(true); body.addMember(test); body.addMember(test2); addMember(body);
Code:
isc.Button.addProperties({ height:22, width:120, baseStyle:"button", showFocusedAsOver:false, showFocusOutline:false }); // define IButton so examples that support the new SmartClient skin image-based // button will fall back on the CSS-based Button with this skin isc.ClassFactory.defineClass("IButton", "Button").addProperties({ baseStyle:"button", showFocusedAsOver:false, showFocusOutline:false });
Comment