devexpress-richedit 24.1.3 → 24.1.4-build-24183-0102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/gulpfile.js +1 -1
- package/bin/index-custom.js +1 -1
- package/bin/localization-builder.js +1 -1
- package/bin/nspell-index.js +1 -1
- package/bin/nspell.webpack.config.js +1 -1
- package/bin/webpack-externals.js +1 -1
- package/bin/webpack.config.js +1 -1
- package/dist/dx.richedit.css +1 -1
- package/dist/dx.richedit.d.ts +1 -1
- package/dist/dx.richedit.js +19 -11
- package/dist/dx.richedit.min.js +2 -2
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/common/layout-formatter/floating/position-calculators/base-calculator.d.ts +1 -0
- package/lib/common/layout-formatter/floating/position-calculators/base-calculator.js +1 -0
- package/lib/common/layout-formatter/floating/position-calculators/vertical.js +6 -4
- package/lib/common/model/fonts/loader.js +11 -6
- package/package.json +3 -3
package/bin/gulpfile.js
CHANGED
package/bin/index-custom.js
CHANGED
package/bin/nspell-index.js
CHANGED
package/bin/webpack-externals.js
CHANGED
package/bin/webpack.config.js
CHANGED
package/dist/dx.richedit.css
CHANGED
package/dist/dx.richedit.d.ts
CHANGED
package/dist/dx.richedit.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* DevExpress WebRichEdit (dx.richedit.js)
|
3
|
-
* Version: 24.1.
|
3
|
+
* Version: 24.1.4
|
4
4
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
5
5
|
* License: https://www.devexpress.com/Support/EULAs
|
6
6
|
*/
|
@@ -89413,15 +89413,20 @@ class ControlFontsLoader {
|
|
89413
89413
|
};
|
89414
89414
|
const xhr = new XMLHttpRequest();
|
89415
89415
|
xhr.onload = (_e) => {
|
89416
|
-
const
|
89417
|
-
if (
|
89418
|
-
|
89419
|
-
|
89416
|
+
const contentType = xhr.getResponseHeader("Content-Type");
|
89417
|
+
if (contentType != null && contentType.startsWith('font')) {
|
89418
|
+
const fontSource = xhr.response;
|
89419
|
+
if (xhr.status >= 400 || !fontSource) {
|
89420
|
+
if (fontInfo.next())
|
89421
|
+
this.makeRequest(fontInfo, afterLoading);
|
89422
|
+
else
|
89423
|
+
notLoaded();
|
89424
|
+
}
|
89420
89425
|
else
|
89421
|
-
|
89426
|
+
afterLoading(fontSource);
|
89422
89427
|
}
|
89423
89428
|
else
|
89424
|
-
|
89429
|
+
notLoaded();
|
89425
89430
|
};
|
89426
89431
|
xhr.onerror = () => notLoaded();
|
89427
89432
|
xhr.open("GET", fontInfo.currentPath, true);
|
@@ -94359,6 +94364,7 @@ class AnchorObjectPositionCalculatorBase {
|
|
94359
94364
|
this.obj = obj;
|
94360
94365
|
this.isRelativeCell = !!this.manager.activeFormatter.tableFormatter &&
|
94361
94366
|
(obj.anchorInfo.layoutTableCell || this.manager.model.compatibilitySettings.layoutInTableCell);
|
94367
|
+
this.isSimpleView = this.manager.innerClientProperties.viewsSettings.isSimpleView;
|
94362
94368
|
}
|
94363
94369
|
}
|
94364
94370
|
|
@@ -94569,13 +94575,15 @@ class AnchorObjectVerticalPositionCalculator extends AnchorObjectPositionCalcula
|
|
94569
94575
|
switch (this.anchorInfo.verticalPositionType) {
|
94570
94576
|
case AnchorObjectVerticalPositionType.Page:
|
94571
94577
|
return this.isRelativeCell ? this.relativeColumnPos() + this.lp.row.tableCellInfo.y + this.topCellMargin : 0;
|
94572
|
-
case AnchorObjectVerticalPositionType.Paragraph:
|
94573
|
-
return this.relativeColumnPos() + this.getRowWhatStartParagraphY();
|
94574
94578
|
case AnchorObjectVerticalPositionType.Line:
|
94575
94579
|
return this.relativeColumnPos() + this.lp.row.y;
|
94576
94580
|
case AnchorObjectVerticalPositionType.Margin:
|
94577
|
-
|
94578
|
-
this.
|
94581
|
+
if (!this.isSimpleView) {
|
94582
|
+
return this.isRelativeCell ? this.relativeColumnPos() + this.lp.row.tableCellInfo.y + this.topCellMargin :
|
94583
|
+
this.manager.boundsCalculator.marginTop;
|
94584
|
+
}
|
94585
|
+
case AnchorObjectVerticalPositionType.Paragraph:
|
94586
|
+
return this.relativeColumnPos() + this.getRowWhatStartParagraphY();
|
94579
94587
|
case AnchorObjectVerticalPositionType.TopMargin:
|
94580
94588
|
case AnchorObjectVerticalPositionType.InsideMargin:
|
94581
94589
|
return this.isRelativeCell ? this.relativeColumnPos() + this.lp.row.tableCellInfo.y + this.topCellMargin : 0;
|