SOLVED-Strange issue with background zooming on button click.

I have a page that has buttons that filter database driven content that displays in a text box and it works just fine. I added a background image to the page to dress it up a bit (wix stock background). However, now whenever i click on the top button the background changes like it is zooming in or enlarging the background, when i click on the second button, it changes back. I have no code to effect the background. Any ideas why this is happening, and how i can fix it?

Could be a bug but please add a screenshot or use free JING to screenrecord and insert here so I can see it


It is hard to see in the screenshots, but if you look at the right side of the background you can see the “railing” in the image is much larger or zoomed in than in the first and third images. I will try to record my screen in a few as i could not get JING to work.

1 Like

Do you use expand or show / hide on the page so the height of the content changes?

https://www.facebook.com/william.baumann.771/videos/2193701860663754/

Sorry for the low quality, i was trying to keep the file size small

@andreas-kviby No, it is a text box. The content comes from a database and the buttons are filters that are specific to the field that the data relates to.

https://www.cryptodynamics.info/training-moduals

Actually i am having another issue, i can view the content in preview, but not in live view, i have synced the data to live, hopped on one foot, and still nothing. This is the simple page code

// For full API documentation, including code examples, visit Velo API Reference - Wix.com
import wixData from ‘wix-data’;

$w.onReady( function () {

});
//filter to buttons

export function history_click() {
$w(“#dataset1”).setFilter(wixData.filter().contains(‘title’,‘Lesson1’))

}

export function current_click() {
$w(“#dataset1”).setFilter(wixData.filter().contains(‘title’,‘Lesson2’))

}

I cleared my browser history and now it doesn’t work in my preview either, so something is messed up somewhere. But it was working in my preview before, as you can see from the screenshots and the video i took. So now i am more confused than ever.

ok now it seems to be working again, but you have to be a member to see it which is how it was supposed to be anyway. idk glitch in the matrix, still have the background zoom issue.

I have gotten this issue resolved. The cause is that the dataset causes a resize of the page due to the amount of content. This resize is what is causing the background to distort. Rebuilding the page in a dynamic page fixes the issue.