Browse Source

Page is max 1000px width (fixed)

Jeroen De Meerleer 10 months ago
parent
commit
ebea99419c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/JeroenED/PortfolioBundle/Resources/public/js/jeroened.js

+ 2 - 2
src/JeroenED/PortfolioBundle/Resources/public/js/jeroened.js

@@ -45,7 +45,7 @@ $(document).ready(function() {
         var maxw = $(window).innerWidth() - 100;
         if (maxw > 1000) maxw = 1000;
         $('.page').css("max-height", $(window).innerHeight() - 100 + "px");
-        $('.page').css("max-width", maxw - 100 + "px");
+        $('.page').css("max-width", maxw + "px");
         $('.page').mCustomScrollbar('update');
         $('.page').css("top", ($(window).innerHeight() - $('.page').innerHeight()) / 2 + $(window).scrollTop() + "px");
         $('.page').css("left", ($(window).innerWidth() - $('.page').innerWidth()) / 2 + $(window).scrollLeft() + "px");
@@ -131,7 +131,7 @@ function OpenPage(page, popState) {
         if (maxw > 1000) maxw = 1000;
         $('#' + page).css("position", "absolute");
         $('#' + page).css("max-height", $(window).innerHeight() - 100 + "px");
-        $('#' + page).css("max-width", maxw - 100 + "px");
+        $('#' + page).css("max-width", maxw + "px");
         if (!$('#' + page).hasClass("mCustomScrollbar")) {
             $('#' + page).mCustomScrollbar({ autoHideScrollbar: true});
             $.ajax({