angular-inview icon indicating copy to clipboard operation
angular-inview copied to clipboard

Offset values

Open maartenvanbenthem opened this issue 8 years ago • 4 comments

I am using V 1.5.7

The offset values are interpreted as:

[top, bottom, left, right]

and not as the documentatiosn tells:

[top, right, bottom, left]

Maybe usefull to have an example with the offset too.

maartenvanbenthem avatar Nov 08 '16 12:11 maartenvanbenthem

And offset in percentages is not working as expected.

maartenvanbenthem avatar Nov 08 '16 12:11 maartenvanbenthem

hmm interesting. the code seams fine. perhaps you could add a jsbin (for example based on this) to show off the problem?

thenikso avatar Nov 17 '16 14:11 thenikso

Negative values in percentage are also not working.

ianldgs avatar Jun 28 '17 17:06 ianldgs

I too have found that OFFSET doesn't work when it points to a cell that calculates a percentage. Frustrating limitation, but my work around has been to create a second column that just points to the cell that does the calculation. Then I point my offset to the cell that just has the value, rather than the calculation for percentage.

Example: Let's say column A is date, column B is my total, and column C is my partials. Column D calculates that row for C/B, and shows a percentage. If my OFFSET points to a cell in column D, it will just return 0. So my workaround was to create a column E that just points to the calculated value in column D. Then setup my OFFSET so that it points to E.

-Silly limitation to run into.

Khaos-Storm avatar Nov 15 '17 17:11 Khaos-Storm