Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Expanding Preview Reposition

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

The Expanding Preview setting in Zentools2 seems to have a setting that repositions the screen when an item is opened. The problem is this isn't working correctly - when you open an item, the page scrollls back up to the top of the screen, making your scroll back down to read what just opened. Very annoying - any way to turn this off? You can see example here: voterise.org/dev/about/board (soon will be voterise.org/about/board)

Especially problematic on mobile view when all items are stacked, creating a lot of scrolling back and forth.
  • Troy Mumm's Avatar
  • Troy Mumm
  • LIfetime Developer - Big Bamboo
  • 140 posts
  • 3 Thanks
  • Karma: 4
The administrator has disabled public write access.
Update - in the jquery.gridder.min.js file I commented out the Scroll section. Not ideal, but a bit better.
  • Troy Mumm's Avatar
  • Troy Mumm
  • LIfetime Developer - Big Bamboo
  • 140 posts
  • 3 Thanks
  • Karma: 4
The administrator has disabled public write access.
I'll check with Anthony

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Troy,

I took a look at the demo and it seems to work fine here. I think it may be some issue with the css for the module's parent div.

Are you able to reinstate the code on your site and I will look at why that's happening?
Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Thanks Anthony - I've reset that. You can look here and see how the items don't really move correctly. In mobile view, it scrolls all the back to the top. This is on Buildr template in belowcontent postion. Thanks for checking.

voterise.org/about/board


in jquery.gridder.min.js I had commented out

// Close Function
function closeExpander(base, settings) {

// SCROLL TO CORRECT POSITION FIRST
$("html, body").animate({
scrollTop: base.find(".selectedItem").offset().top - settings.scrollOffset
}, {
duration: 200,
easing: settings.animationEasing
});


and

/* SCROLL TO CORRECT POSITION FIRST */
var offset = (settings.scrollTo === "panel" ? myself.offset().top + myself.height() - settings.scrollOffset : myself.offset().top - settings.scrollOffset );
$("html, body").animate({
scrollTop: offset
}, {
duration: settings.animationSpeed,
easing: settings.animationEasing
});
  • Troy Mumm's Avatar
  • Troy Mumm
  • LIfetime Developer - Big Bamboo
  • 140 posts
  • 3 Thanks
  • Karma: 4
The administrator has disabled public write access.
I'm seeing a jQuery error related to k2. Can you enable or disable the K2 version of jQuery on the front end? Or disable k2 plugin while we test this?
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
OK, error is gone. But that error is when I turn off K2 loading jQuery, which shouldn't be needed.
  • Troy Mumm's Avatar
  • Troy Mumm
  • LIfetime Developer - Big Bamboo
  • 140 posts
  • 3 Thanks
  • Karma: 4
The administrator has disabled public write access.
I'm not seeing the scroll yet.
Have you cleared cache?

I think it depends on where you load jQuery from in K2. The template just uses the core Joomla way to load jQuery so I think that is down tot he K2 config perhaps.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
See if this helps explain what I"m talking about

quick.as/dpe6uz8wj
  • Troy Mumm's Avatar
  • Troy Mumm
  • LIfetime Developer - Big Bamboo
  • 140 posts
  • 3 Thanks
  • Karma: 4
The administrator has disabled public write access.
I understand what you mean. It's just that on the site at the moment I'm not seeing any scroll when the items are clicked.
Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Hmm, well, in Chrome there seems to be no scroll at all. The oddness I recorded happened in Firefox.
  • Troy Mumm's Avatar
  • Troy Mumm
  • LIfetime Developer - Big Bamboo
  • 140 posts
  • 3 Thanks
  • Karma: 4
The administrator has disabled public write access.
Yes I was looking in Chrome.
Perhaps try reinstalling Zentools and then let me know when the scroll is there so I can see what's happening.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
ok, I resintalled ZenTools, but the scroll still not working in Chrome. Works (incorrectly) in Firefox. The constant struggle of Joomla script conflicts. Don't worry about it, I'll try something else. Thanks Anthony.
  • Troy Mumm's Avatar
  • Troy Mumm
  • LIfetime Developer - Big Bamboo
  • 140 posts
  • 3 Thanks
  • Karma: 4
The administrator has disabled public write access.
Was it working before in Chrome?

I've just spun up a fresh copy of Highline2 and tested the preview and it's working fine now.

Happy to keep trying to figure it out.

Anthony
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers