I created my own button class for a tab strip, which requires each button/tab to be touching the tabs next to it. However, it appears the following code in the TabStrip class adds 1 pixel to the hOffset, creating a 1 pixel separation between each button/tab.
For the meantime, I sub-classed the TabStrip class, and overrode the _layoutButton method to remove the addition of the 1 pixel. However, I just wanted to make sure this extra 1 pixel was intended to be in the code, so that I can safely remove it. Is there a reason for this 1 pixel?
Thanks.
CODE
_layoutButton: function (button, index, buttons, width) {
KONtx_automation_log("function","KONtx.control.TabStrip","_layoutButton");
if (width) {
button.width = width;
button.adjustTabContent();
}
// Why is 1 pixel added to the hOffset??
if (index) button.hOffset = buttons[index-1].hOffset + buttons[index-1].width + 1;
button.show();
}