open-nomad/ui/app/components/das/task-row.js

21 lines
409 B
JavaScript
Raw Normal View History

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;
}
}