jquery.waterfall icon indicating copy to clipboard operation
jquery.waterfall copied to clipboard

Change width during responsive !!!

Open NaosFr opened this issue 6 years ago • 0 comments

Hello, i would like to change the width value during the responsive ! `getWidth(event) { let widthLandingFlat = Math.floor($('.landing_flat').width());

		let value;
		if (widthLandingFlat > 655 && widthLandingFlat < 1000)
			value = 215;
		else if (widthLandingFlat > 645 && widthLandingFlat < 655)
			value = 210;
		else if (widthLandingFlat > 635.8 && widthLandingFlat < 645)
			value = 205;
		else if (widthLandingFlat <= 635.8)
			value = 255;
		else {
			value = 215;
		}
		

		if (this.tmp != value) {
			let width =  Math.floor(value);

			// console.log(width)
			$('#content-komit').NewWaterfall({
				refresh: 1000,
				width: width
			});
		}
		this.tmp = value;
	}`

but change width, create a display bug and in waterfall.js: config.width change always to value ...

Did you have an idea for resolve this problem please ? thx

NaosFr avatar Aug 04 '18 13:08 NaosFr