2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-04 08:47:37 +08:00

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 2 additions and 25 deletions

View file

@ -158,23 +158,6 @@ componentTest('doesnt 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}}',