Skip to content

Commit 6a59133

Browse files
committed
use region layout update event
1 parent 3c59d81 commit 6a59133

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

book.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@
19501950
pagination.events.escapesNeedMove);
19511951
}
19521952
};
1953-
1953+
19541954
observer = new MutationObserver(function (mutations) {
19551955
checkSpacerSize();
19561956
});
@@ -2139,6 +2139,8 @@
21392139
checkAllEscapeReferencePagesPlacements = function () {
21402140
flowObject.checkAllEscapeReferencePagesPlacements();
21412141
};
2142+
2143+
flowObject.namedFlow.addEventListener("webkitregionoversetchange", checkOverset);
21422144

21432145
if (this.rawdiv) {
21442146
/* Create an observer instance to watch if anything is being changed in
@@ -2161,12 +2163,12 @@
21612163

21622164
observer = new MutationObserver(function (mutations) {
21632165
observer.disconnect();
2164-
checkOverset();
21652166
checkAllEscapeReferencePagesPlacements();
21662167
observer.observe(ourRawdiv,observerOptions);
21672168
});
21682169

21692170
observer.observe(ourRawdiv,observerOptions);
2171+
21702172
}
21712173

21722174
reFlow = function () {

changes.txt

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
0.70-dev
1+
1.1-dev
22
----
3+
use webkitregionoversetchange event to trigger add/removal of pages.s
4+
5+
1.0-dev
6+
----
7+
word index
8+
margin notes
9+
cross references
310
column separators
411
pages with top floats have extra CSS class: pagination-page-topfloat
512
use mutation observers instead of flow events
613
support for top floats
714
changed default options reading. Changing page size on the fly now has to happen by changing page sized in paginationConfig rather than Pagionation.config
815

9-
0.60-dev
16+
0.60
1017
----
1118
changed version scheme
1219
prefix flownames and content elements

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h4>Page headers, footnotes, pagenumbers, multi columns, TOC, using CSS Regions<
66

77
<h2>Steps:</h2>
88
<ol>
9-
<li>Download a recent version of Chromium/Chrome (26+)</li>
9+
<li>Download a recent version of Chromium/Chrome (29+)</li>
1010
<li>In Chrome/Chromium open a new tab and go to "<code>chrome://flags/</code>"</li>
1111
<li>Search for "Webkit Experimental Features" and enable them</li>
1212
<li>Restart your browser</li>

0 commit comments

Comments
 (0)