Browse Source

fixing up the phone placement

pull/249/head
connors 11 years ago
parent
commit
2df1ff287a
  1. 7
      docs-assets/js/docs.js

7
docs-assets/js/docs.js

@ -38,7 +38,6 @@ $(function() {
iphone.dockingOffset = ($(window).height() + $('.platform-toggle').height() - iphone.height())/2;
checkDesktopContent();
calculateScroll();
console.log(iphone.dockingOffset);
if (!eventListeners) addEventListeners();
}
@ -97,14 +96,14 @@ $(function() {
iphone[0].setAttribute('style','')
}
if(pageHeight - currentTop <= $('.platform-toggle') {
if(currentTop >= $('.docs-masthead').outerHeight()) {
$('.platform-toggle').addClass('fixed');
console.log('fixed');
} else {
$('.platform-toggle').removeClass('fixed');
console.log('not fixed');
}
// Injection of components into phone
for (var l = contentSection.length; l--;) {
if ((topCache[l] - currentTop) < windowHeight) {

Loading…
Cancel
Save