• Resolved Roshaan Shakeel

    (@roshaan-shakeel)


    I upgraded to 6.0.0 when it rolled out but today I found out that when there are two albums on one page and their sizes are set to auto the both don’t resize on mobile/tablet as they should do in responsive design which they did before this update. I usually put two different albums on two different tabs on one page and before this update they worked well but now only the album in the tab I am currently on changes its width while the album under the other tab doesn’t resize even when I change over to see that album. They only time it would change is when I am currently on the 2nd tab and I resize my window/tilt phone but then the first one gets stuck where it was before. Here is a link to make you better understand what I am trying to explain.
    https://www.carspecwall.com/porsche/boxter-series/boxter-spyder/boxter-spyder-2015/
    I know that this a WPPA problem because I ran a control-test on a local installation of wordpress with no plugins and the problem was there. I hope you could check it out.

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I usually put two different albums on two different tabs on one page

    How do i open the second tab? The link above just shows one page. When i open a second tab via a link to a fullsize image while holding the CTRL-key; after resizeng, both tabs are responsive resized correctly.

    I tested on firefox on windows 7

    Thread Starter Roshaan Shakeel

    (@roshaan-shakeel)

    I am sorry I didn’t mention it properly. As you can see their are two tabs “Wallpapers” and “Reference Images” I am referring to those two tabs. I checked on my mobile phone and the problem is their.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Ok, I can now reproduce this, in firefox and in chrome.

    I really want to know if you are sure that this is a regression with respect to your previous version 5.5.7, or if it is just that you see this only now. Please tell me if you are not sure that the problem was there in the previous version. This will make finding a fix much simpler.

    Thread Starter Roshaan Shakeel

    (@roshaan-shakeel)

    I am sure about not there being a problem in some previous revision but I cannot be sure from which revision the problem started to occur because I just noticed it now.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I guess the theme you use is a commercial theme, as i can not find it in the wp themes directory.

    If you have enough knowledge to do, i would like to change the <a tags in:

    <ul class="cd-tabs-navigation">
    <li>
    <a class="selected" href="#tab-1496120035-1" data-content="Wallpapers">Wallpapers</a>
    </li>
    <li>
    <a href="#tab-1496120035-2" data-content="Reference Images">Reference Images</a>
    </li>
    .
    .
    . etc

    From ( example ):

    <a href="#tab-1496120035-2" data-content="Reference Images">Reference Images</a>

    To:

    <a onclick="jQuery( window ).trigger( 'resize' );" href="#tab-1496120035-2" data-content="Reference Images">Reference Images</a>

    or, if this does not help, to:

    <a onclick="setTimeout('jQuery( window ).trigger( \'resize\' )', 600);" href="#tab-1496120035-2" data-content="Reference Images">Reference Images</a>

    So, if you can supply me the theme, i could test this, or try other solutions.

    I did a change approx half a your ago so the resizing is no longer done every second, but only on resize events; obvious for overall performance reasons. This may have introduced the problem.

    Note: normally i do not support issues on commercial themes, unless i can either get the theme for free, or get full access to the site as administrator.

    Thread Starter Roshaan Shakeel

    (@roshaan-shakeel)

    Well I tried to add the strings you mentioned but I get parse errors. Yes it is a commercial theme so where should I send it?

    Thread Starter Roshaan Shakeel

    (@roshaan-shakeel)

    I think I have got it, I added the following to the JS I am already using for changing tabs, this code is according to the algorithm my JS contains:
    selectedItem.trigger('resize');

    Thread Starter Roshaan Shakeel

    (@roshaan-shakeel)

    The code you mentioned above works when I used it in the way I mentioned in my previous post. Thank you for your support, I have been using this plugin for almost two years now and it has not ever let me down and neither does your support. Thanks once again.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    No matter how, but as long as ‘resize’ is triggered after changing the tab, it will work.

    You are always welcome for support issues.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Auto size doesn't work with two albums on the same page’ is closed to new replies.