FIX: use css instead of js to fix select-kit-collection max-height

This commit is contained in:
Joffrey JAFFEUX
2018-02-01 16:56:07 +01:00
committed by GitHub
parent 9923829402
commit 97ddaeeae8
11 changed files with 2 additions and 25 deletions

View File

@ -158,23 +158,6 @@ componentTest('doesn’t render collection content before first expand', {
}
});
componentTest('supports options to limit size', {
template: '{{single-select collectionHeight=20 content=content}}',
beforeEach() {
this.set("content", ["robin", "régis"]);
},
test(assert) {
this.get('subject').expand();
andThen(() => {
const height = find(".select-kit-collection").height();
assert.equal(parseInt(height, 10), 20, "it limits the height");
});
}
});
componentTest('dynamic headerText', {
template: '{{single-select value=1 content=content}}',