Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions js/views/reflowable_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ var ReflowableView = function(options, reader){
function updateViewportSize() {

var newWidth = _$contentFrame.width();

// Ensure that the new viewport width is always even numbered
// this is to prevent a rendering inconsistency between browsers when odd-numbered bounds are used for CSS columns
// See https://github.com/readium/readium-shared-js/issues/37
newWidth -= newWidth % 2;

var newHeight = _$contentFrame.height();

if(_lastViewPortSize.width !== newWidth || _lastViewPortSize.height !== newHeight){
Expand Down