Search the database
Search forum topics
Search members
Search for trades
diablo2.io is supported by ads
diablo2.io is supported by ads
1 reply   487 views
1

Detailed/Compact view buttons sometimes bugging out

No data yet

Bug Report

2

Description

OS & Browser: Mac OS X High Sierra, Safari Version 13.1.2 Location on site: Global issue Description of bug: Sometimes the grid doesn't re-arrange after using the compact/detailed view filters Steps to reproduce: Clear browser cache, visit any database area, switch to 'Compact view' and observe grid doesn't re-arrange until second click. Any further information: This issue is related to isotope.js and it's behaviour with cacheing. To reproduce the bug the user visits the page for the very first time, or after refreshing their browser cache, and isotope fails to catch the jQuery event handler that requests a grid relayout when the view buttons are clicked. On second click the issue is resolved, and so long as user doesn't refresh cache afterwards there should be little to no intermittent cut-outs of this event listener.
Description by Teebling
5

Can be used to make Runewords:

7
User avatar

Teebling 5826Admin

Europe PC
OS & Browser: Mac OS X High Sierra, Safari Version 13.1.2 Location on site: Global issue Description of bug: Sometimes the grid doesn't re-arrange after using the compact/detailed view filters Steps to reproduce: Clear browser cache, visit any database area, switch to 'Compact view' and observe grid doesn't re-arrange until second click. Any further information: This issue is related to isotope.js and it's behaviour with cacheing. To reproduce the bug the user visits the page for the very first time, or after refreshing their browser cache, and isotope fails to catch the jQuery event handler that requests a grid relayout when the view buttons are clicked. On second click the issue is resolved, and so long as user doesn't refresh cache afterwards there should be little to no intermittent cut-outs of this event listener.
Screenshot showing issue after cache reset and switch to compact view
Screenshot showing issue after cache reset and switch to compact view
Fixedby Teebling3 years agoGo to post
After a lot of searching and trying almost everything, I've managed to fix this issue by re-calling a new isotope relayout function after a 10ms delay:

Code: Select all

window.setTimeout(relayout, 10);

function relayout() {
    $grid.isotope();
}

7
OP
User avatar

Teebling 5826Admin

Europe PC
After a lot of searching and trying almost everything, I've managed to fix this issue by re-calling a new isotope relayout function after a 10ms delay:

Code: Select all

window.setTimeout(relayout, 10);

function relayout() {
    $grid.isotope();
}
This post was marked as the fix.

9

Advertisment

Hide ads
999

Greetings stranger!

You don't appear to be logged in...

99

Who is online

Users browsing Bug Reports: No registered users and 1 guest.

No matches
diablo2.io is supported by ads
 

 

 

 

Value:
Hide ads forever by supporting the site with a donation.

Greetings adblocker...

Warriv asks that you consider disabling your adblocker when using diablo2.io

Ad revenue helps keep the servers going and supports me, the site's creator :)

A one-time donation hides all ads, forever:
Make a donation