Skip to content

Can no longer set maxAjaxRows or panelZIndex #535

Closed

Description

@adrianbj

Version: 2.7.9 & 2.9.1

Bug Description

It doesn't seem like it's possible to override these anymore.

Steps To Reproduce

It used to be possible to set these via:

window.Tracy.panelZIndex = 100;
window.TracyMaxAjaxRows = 5;

Expected Behavior

It doesn't work in the latest versions of 2.7 or 2.9 but it used to work in earlier versions of 2.7, but I am not sure about 2.8.

I think the example suggests it should still be possible to change the maxAjaxRows:

// window.TracyMaxAjaxRows = 3;

and I don't think there is any reason to have removed the zIndex option. Further discussion about that here: #269

Thanks.

Activity

  1. dg commented on Apr 27, 2022

    @dg
    Member

    I tried the example ajax-fetch.php and window.TracyMaxAjaxRows works.

  2. adrianbj commented on May 8, 2022

    @adrianbj
    ContributorAuthor

    @dg - I have managed to set window.TracyMaxAjaxRows now, but I had to do it after Tracy was loaded. Before I could include that in a $customJsFiles file.

    But, I am still having problems setting panelZIndex - in v2.5 you had:

    Tracy = window.Tracy || {};
    Tracy.panelZIndex = Tracy.panelZIndex || 20000;
    

    but now you have:

    let panelZIndex = 20000,
    

    and

    panelZIndex: Tracy.panelZIndex,
    

    and I am struggling to figure out how to override it. Am I missing something obvious?

    Thanks.

  3. dg commented on May 8, 2022

    @dg
    Member

    I would like you to suggest a solution, because I don't use this (and therefore it's really possible that it doesn't work at all).

  4. adrianbj commented on May 8, 2022

    @adrianbj
    ContributorAuthor

    It used to work perfectly. It's really nice to be able to set this because 20000 is higher than the dropdown menus in Processwire which means for large panels they block access to these.

    Can you either revert to having panelZIndex globally scoped so it can be changed via window or could you make it configurable via a PHP setting - maybe Debugger::panelZIndex

  5. dg commented on May 9, 2022

    @dg
    Member

    I tried to fix it. Only for consistency's sake, I changed window.Tracy.panelZIndex to window.TracyPanelZIndex.

  6. adrianbj commented on May 9, 2022

    @adrianbj
    ContributorAuthor

    Thanks @dg - works perfectly - it's great to have this option back - saves lots of frustrations :)

  7. added a commit that references this issue on May 9, 2022
    1627daf
  8. added 2 commits that reference this issue on May 16, 2022
    12ce875
    a07b6ea
  9. added a commit that references this issue on May 30, 2022
    8ca40cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions