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

fix(panel): loosen up bounds assessment #10651

Merged
merged 1 commit into from
Jan 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/panel/panel.js
Original file line number Diff line number Diff line change
@@ -3100,8 +3100,8 @@ MdPanelPosition.prototype._bidi = function(position) {
MdPanelPosition.prototype._calculatePanelPosition = function(panelEl, position) {

var panelBounds = panelEl[0].getBoundingClientRect();
var panelWidth = panelBounds.width;
var panelHeight = panelBounds.height;
var panelWidth = Math.max(panelBounds.width, panelEl[0].clientWidth);
var panelHeight = Math.max(panelBounds.height, panelEl[0].clientHeight);

var targetBounds = this._relativeToEl[0].getBoundingClientRect();