vector dX, dY;
vector width, height;
vector bW, bH;
+ if (theBorderSize_x <= 0 && theBorderSize_y <= 0) // no border
+ {
+ // draw only the central part
+ drawsubpic(theOrigin, theSize, pic, '0.25 0.25 0', '0.5 0.5 0', theColor, theAlpha, 0);
+ return;
+ }
pic = draw_UseSkinFor(pic);
theOrigin = boxToGlobal(theOrigin, draw_shift, draw_scale);
theSize = boxToGlobalSize(theSize, draw_scale);
{
// move the close button to the right place
me.closeButton.Container_origin = '1 0 0' * (1 - me.borderVec_x);
- me.closeButton.Container_size = me.borderVec;
+ me.closeButton.Container_size = (me.borderHeight > 0) ? me.borderVec : 0.0001 * '1 1 0'; //workaround to not draw a big closebutton if borderHeight is 0
me.closeButton.color = me.color;
me.closeButton.colorC = me.color;
me.closeButton.colorF = me.color;