How to use the @angular2-material/core/style/apply-transform.applyCssTransform function in @angular2-material/core

To help you get started, we’ve selected a few @angular2-material/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robisim74 / angular-l10n / node_modules / @angular2-material / core / overlay / position / global-position-strategy.js View on Github external
GlobalPositionStrategy.prototype.apply = function (element) {
        element.style.position = this._cssPosition;
        element.style.top = this._top;
        element.style.left = this._left;
        element.style.bottom = this._bottom;
        element.style.right = this._right;
        // TODO(jelbourn): we don't want to always overwrite the transform property here,
        // because it will need to be used for animations.
        var tranlateX = this._reduceTranslateValues('translateX', this._translateX);
        var translateY = this._reduceTranslateValues('translateY', this._translateY);
        apply_transform_1.applyCssTransform(element, tranlateX + " " + translateY);
        return Promise.resolve();
    };
    /** Reduce a list of translate values to a string that can be used in the transform property */