mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Fix a class name bug in the distribution bar
This commit is contained in:
@@ -99,7 +99,7 @@ export default Component.extend(WindowResizable, {
|
||||
});
|
||||
|
||||
slices = slices.merge(slicesEnter);
|
||||
slices.attr('class', d => d.className || `slice-${filteredData.indexOf(d)}`);
|
||||
slices.attr('class', d => d.className || `slice-${_data.indexOf(d)}`);
|
||||
|
||||
const setWidth = d => `${width * d.percent - (d.index === sliceCount - 1 || d.index === 0 ? 1 : 2)}px`
|
||||
const setOffset = d => `${width * d.offset + (d.index === 0 ? 0 : 1)}px`
|
||||
|
||||
Reference in New Issue
Block a user