Scrolling not correct in windows on appphp

Discuss everything related to ApPHP AdminPanel. Any questions related to developing or using should be posted to this forum.

Moderator: alexandrleonenko

Wampumash
Junior
Junior
Posts: 13
Joined: Nov 14th, '12, 06:21

Scrolling not correct in windows on appphp

Postby Wampumash » Feb 5th, '14, 05:38

scroll up down on all windows is not showing full window any more on explorer 11.
Half of the windows are not displayed and you need to click the scroll up/down on the right side of the window to access the rest of the windows on all windows?
It only shows about 10% of any window. with scroll bars on the right side. What happened?

Seems to work ok on safari 5.1.2.7 ok, but IE 11 NO full screen management!

administrator
Site Admin
Site Admin
Posts: 6056
Joined: Jan 7th, '09, 23:18
Contact:

Re: Scrolling not correct in windows on appphp

Postby administrator » Feb 5th, '14, 08:21

Thanks, we'll check this issue and try to fix it for the next version.

Wampumash
Junior
Junior
Posts: 13
Joined: Nov 14th, '12, 06:21

Re: Scrolling not correct in windows on appphp

Postby Wampumash » Feb 6th, '14, 01:14

More information on this. If I resize Internet Explorer it fixes the scrolling, but I have to do it every time I load another page.
In each webpage viewing source I see this.

Code: Select all

<body style="overflow:hidden;" onResize='setPageHeight()' onLoad='setPageHeight()'>

I don't think Explorer is running the Onload = function on any of the windows..
So OnResize is working, but not Onload.


In index.php this seems to be the problem line of code

Code: Select all

<body style="overflow:hidden;" <?php echo ((($adm_logged == true) && ($SETTINGS['menu_style'] == "side") && $SETTINGS['left_panel_scrolling']) ? "onResize='setPageHeight()' OnLoad='setPageHeight()'" : ""); ?>>

commenting out this section to just this fixes all problems in IE 11

Code: Select all

<body style="overflow:hidden;" >


Hope that's helpful.

Please pm me a patch for this if you can.

administrator
Site Admin
Site Admin
Posts: 6056
Joined: Jan 7th, '09, 23:18
Contact:

Re: Scrolling not correct in windows on appphp

Postby administrator » Feb 6th, '14, 08:32

You may add a few line of code to run this onload function:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Does it help now?

Wampumash
Junior
Junior
Posts: 13
Joined: Nov 14th, '12, 06:21

Re: Scrolling not correct in windows on appphp

Postby Wampumash » Feb 8th, '14, 01:07

I tried the example code, and it still doesn't handle when the windows change by selecting menu items.
It will only fire once, when the index.php loads the first time. selecting any menus still leaves the screens with 10% viewable and a scrollbar on the side. I left the alert() code in for testing it.
This is what I tried.

Code: Select all

<!-- INCIN --IE 11 bug causing windows not to load fully causes window scrolling and 10% screen-->
<script type="text/javascript">
      function doLoad()
      {
        alert( "The load event is executing" );
        setPageHeight();
      }
     
      if ( window.addEventListener ) {
         window.addEventListener( "load", doLoad, false );
      }
      else
         if ( window.attachEvent ) {
            window.attachEvent( "onload", doLoad );
      } else
            if ( window.onLoad ) {
               window.onload = doLoad;
      }
  </script>
<body name="main" style="overflow:hidden;" <?php echo ((($adm_logged == true) && ($SETTINGS['menu_style'] == "side") && $SETTINGS['left_panel_scrolling']) ? "onload='doLoad()' onResize='setPageHeight()'" : ""); ?>>
<!-- body style="overflow:hidden;" -->


I tried this next. It works until resizing the page, then stops working right.
I added this in js\function.js

Code: Select all


function doLoad() {
    alert("The load event is executing");
    setPageHeight();
}

function listeneradd()
{
    if (window.addEventListener) {
        window.addEventListener("load", doLoad, false);
    }
    else if (window.attachEvent) {
        window.attachEvent("onload", doLoad);
    }
    else if (window.onload) {
        window.onload = doLoad;
    }
}


and in the index.php I changed to this.

Code: Select all

<body name="main" style="overflow:hidden;" <?php echo ((($adm_logged == true) && ($SETTINGS['menu_style'] == "side") && $SETTINGS['left_panel_scrolling']) ? "onload='listeneradd()' onResize='setPageHeight()' onactivate='listeneradd()'" : ""); ?>>



As long as I don't resize the screen this works as a temporary fix, but not altogether working as expected.
Just trying some things and giving some notes.

Wampumash
Junior
Junior
Posts: 13
Joined: Nov 14th, '12, 06:21

Re: Scrolling not correct in windows on appphp

Postby Wampumash » Feb 26th, '14, 03:24

Any kind of fix for this yet?

administrator
Site Admin
Site Admin
Posts: 6056
Joined: Jan 7th, '09, 23:18
Contact:

Re: Scrolling not correct in windows on appphp

Postby administrator » Feb 26th, '14, 08:36

Still not, but we're planning to remove iframes at all in the next version.

Wampumash
Junior
Junior
Posts: 13
Joined: Nov 14th, '12, 06:21

Re: Scrolling not correct in windows on appphp

Postby Wampumash » Jul 1st, '16, 05:44

updates?


Return to “ApPHP AdminPanel {developers/users}”