UNPKG

ember-computed-size

Version:

Need to have some properties on your views with the current width and height of their main element? Here is the mixin which does this for you.

9 lines (7 loc) 268 B
import Ember from 'ember'; import WithComputedSizeMixin from 'ember-computed-size/mixins/with-computed-size'; export default Ember.View.extend(WithComputedSizeMixin, { attributeBindings: ['style'], layoutName: 'with-info-box', classNames: ['with-info-box'] });