devexpress-richedit 24.1.7-build-24274-0102 → 24.1.7-build-24281-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.
@@ -72277,6 +72277,7 @@ class ParagraphFrame extends rectangle.Rectangle {
72277
72277
 
72278
72278
 
72279
72279
 
72280
+
72280
72281
  class InputPosition extends InputPositionBase {
72281
72282
  constructor(selection) {
72282
72283
  super();
@@ -72294,13 +72295,23 @@ class InputPosition extends InputPositionBase {
72294
72295
  }
72295
72296
  getMergedSectionPropertiesRaw() {
72296
72297
  if (!this.mergedSectionPropertiesRaw) {
72297
- var interval = this.intervalsInfo.interval;
72298
- var intervalStartPosition = interval.start;
72299
- var intervalEndPosition = interval.end;
72300
- var sections = this.model.sections;
72301
- var sectionIndex = search.SearchUtils.normedInterpolationIndexOf(sections, (s) => s.startLogPosition.value, intervalStartPosition);
72298
+ let sectionIndex;
72299
+ let intervalEndPosition;
72300
+ const sections = this.model.sections;
72301
+ const pageIndex = this.selection.pageIndex;
72302
+ if (pageIndex < 0) {
72303
+ const interval = this.intervalsInfo.interval;
72304
+ const intervalStartPosition = interval.start;
72305
+ intervalEndPosition = interval.end;
72306
+ sectionIndex = search.SearchUtils.normedInterpolationIndexOf(sections, (s) => s.startLogPosition.value, intervalStartPosition);
72307
+ }
72308
+ else {
72309
+ const layoutPage = this.selection.layout.pages[pageIndex];
72310
+ sectionIndex = Section.getPageSectionIndex(layoutPage, sections);
72311
+ intervalEndPosition = layoutPage.getEndPosition();
72312
+ }
72302
72313
  this.mergedSectionPropertiesRaw = sections[sectionIndex++].sectionProperties.clone();
72303
- for (var section; (section = sections[sectionIndex]) && (section.startLogPosition.value < intervalEndPosition); sectionIndex++)
72314
+ for (let section; (section = sections[sectionIndex]) && (section.startLogPosition.value < intervalEndPosition); sectionIndex++)
72304
72315
  InputPositionBase.mergePropertiesRaw(this.mergedSectionPropertiesRaw, section.sectionProperties, SectionPropertyDescriptor.ALL_FIELDS);
72305
72316
  }
72306
72317
  return this.mergedSectionPropertiesRaw;