How can I prevent texture stretching while scaling a mesh?

Thanks for the solution but is that method still the same or any improvements? Because I’m working with modular parts right now and most of time I have to scale corner parts down (without integer numbers) to not blend with other rooms floor. So I don’t want to get busy to adjust every single deformed part. It has to be done in much effective way otherwise working with modular parts is being useless.