Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
update(panel): Update positioning to be calculated after the panel is…
Browse files Browse the repository at this point in the history
… rendered.
  • Loading branch information
KarenParker authored and ErinCoughlan committed May 10, 2016
1 parent dd5e6ee commit 72b972b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/panel/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,15 @@ MdPanelRef.prototype._addStyles = function() {
return; // Don't setup positioning.
}

this._$rootScope.$applyAsync(angular.bind(this, this._configurePosition));
};


/**
* Configure the position of the panel.
* @private
*/
MdPanelRef.prototype._configurePosition = function() {
/** POSITIONING STYLES **/
var positionConfig = this._config['position'];

Expand Down

0 comments on commit 72b972b

Please sign in to comment.