Improve handling of removal of for IE in AlignBox
This commit is contained in:
parent
214a230504
commit
ad0d7760f0
|
@ -1201,7 +1201,14 @@
|
||||||
},
|
},
|
||||||
alignBox: function (span,align,y) {
|
alignBox: function (span,align,y) {
|
||||||
this.placeBox(span,0,y); // set y position (and left aligned)
|
this.placeBox(span,0,y); // set y position (and left aligned)
|
||||||
if (this.msiePlaceBoxBug) {span.removeChild(span.lastChild.previousSibling)}
|
if (this.msiePlaceBoxBug) {
|
||||||
|
//
|
||||||
|
// placeBox() adds an extra , so remove it here.
|
||||||
|
//
|
||||||
|
var node = span.lastChild;
|
||||||
|
while (node && node.nodeName !== "#text") {node = node.previousSibling}
|
||||||
|
if (node) {span.removeChild(node)}
|
||||||
|
}
|
||||||
var bbox = span.bbox; if (bbox.isMultiline) return;
|
var bbox = span.bbox; if (bbox.isMultiline) return;
|
||||||
var isRelative = bbox.width != null && !bbox.isFixed;
|
var isRelative = bbox.width != null && !bbox.isFixed;
|
||||||
var r = 0, c = -bbox.w/2, l = "50%";
|
var r = 0, c = -bbox.w/2, l = "50%";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user