Skip to content

Commit

Permalink
Merge pull request #129 from readium/feature/issue-115
Browse files Browse the repository at this point in the history
#115: Reflowable page in FXL document is not laid out properly when in two-up mode
  • Loading branch information
danielweck committed Oct 16, 2014
2 parents 473129b + 92e1021 commit 64571c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/models/fixed_page_spread.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ ReadiumSDK.Models.Spread = function(spine, isSyntheticSpread) {
var neighbour = getNeighbourItem(item);
if(neighbour) {
var neighbourPos = getItemPosition(neighbour);
if(neighbourPos != position && neighbourPos != ReadiumSDK.Models.Spread.POSITION_CENTER) {
if (neighbourPos != position
&& neighbourPos != ReadiumSDK.Models.Spread.POSITION_CENTER
//exclude a neighbour that is a reflowable item from the spread (see RSJ#115)
&& !neighbour.isReflowable()) {
setItemToPosition(neighbour, neighbourPos);
}
}
Expand Down

0 comments on commit 64571c5

Please sign in to comment.