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

Handlers do not get initial position ( fullBar.width == 0 at post-compile)

Open bitbay opened this issue 12 years ago • 1 comments

I am trying to use the directive in a plain html (only element is the slider), and after the scope 'settles' (rendering finishes), the two handles are in 0 position. It turns out that the value for the fullBar, on which the rest of the positioning is based has a value of 0. For me it makes sense, since the dom rendering should not be done at the point of post-link (should it?), but i was wondering what container/wrapper style makes the examples actually work?!

Puzzled...

edit: it turns out the use of ng-repeat is the culprit...if i use one item, it has correct width (sadly that is no option for me right now, i need it bound to an array of items).

edit2: looking at the example source code i see that the slider is not used on the page as in the example, eg. not inside an ng-repeat directive...Is this a known issue?

bitbay avatar Jul 09 '13 22:07 bitbay

Just saw this issue 12 Probably this one should be closed...

bitbay avatar Jul 11 '13 20:07 bitbay