wireit icon indicating copy to clipboard operation
wireit copied to clipboard

Adding doctype prevent label positionning

Open fxaeberhard opened this issue 14 years ago • 0 comments

The issues comes in Wire.js, the two lines:

  YAHOO.util.Dom.setStyle(this.labelEl,"left",(this.min[0]+this.max[0]-this.labelEl.clientWidth)/2);
  YAHOO.util.Dom.setStyle(this.labelEl,"top",(this.min[1]+this.max[1]-this.labelEl.clientHeight)/2);

should be replaced with:

  YAHOO.util.Dom.setStyle(this.labelEl,"left",(this.min[0]+this.max[0]-this.labelEl.clientWidth)/2+'px');
  YAHOO.util.Dom.setStyle(this.labelEl,"top",(this.min[1]+this.max[1]-this.labelEl.clientHeight)/2+'px');

fx

fxaeberhard avatar Aug 02 '11 11:08 fxaeberhard