Skip to content

Commit

Permalink
fixes #62 (z-index stacking order due to CSS GPU hardware acceleratio…
Browse files Browse the repository at this point in the history
…n, which is needed to fix a blocking bug (clipped rendering) in WebView OSX in native Readium launchers)
  • Loading branch information
danielweck committed Jul 25, 2014
1 parent 64c6984 commit ada0fca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/views/scroll_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ ReadiumSDK.Views.ScrollView = function(options, isContinuousScroll){
_$contentFrame.css("height", "100%");
_$contentFrame.css("position", "relative");

// This is a necessary counterpart for the same CSS GPU hardware acceleration trick in one_page_view.js
// This affects the stacking order and re-enables the scrollbar in Safari (works fine in Chrome otherwise)
_$contentFrame.css("transform", "translateZ(0)");

// _$contentFrame.css("box-sizing", "border-box");
// _$contentFrame.css("border", "20px solid red");

Expand Down

0 comments on commit ada0fca

Please sign in to comment.