refactoring, fix issue don't apply when new percentage value has no effect on target element