31b4ed7a6d
This is a few combined iterations on the DAS feature.
21 lines
409 B
JavaScript
21 lines
409 B
JavaScript
import Component from '@glimmer/component';
|
|
import { action } from '@ember/object';
|
|
import { tracked } from '@glimmer/tracking';
|
|
|
|
export default class DasTaskRowComponent extends Component {
|
|
@tracked height;
|
|
|
|
get half() {
|
|
return this.height / 2;
|
|
}
|
|
|
|
get borderCoverHeight() {
|
|
return this.height - 2;
|
|
}
|
|
|
|
@action
|
|
calculateHeight(element) {
|
|
this.height = element.clientHeight + 1;
|
|
}
|
|
}
|