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

Commit 27d0f7c

Browse files
oliversalzburgjosephperrott
authored andcommitted
fix(panel): loosen up bounds assessment (#10651)
1 parent f8289dc commit 27d0f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/panel/panel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,8 +3102,8 @@ MdPanelPosition.prototype._bidi = function(position) {
31023102
MdPanelPosition.prototype._calculatePanelPosition = function(panelEl, position) {
31033103

31043104
var panelBounds = panelEl[0].getBoundingClientRect();
3105-
var panelWidth = panelBounds.width;
3106-
var panelHeight = panelBounds.height;
3105+
var panelWidth = Math.max(panelBounds.width, panelEl[0].clientWidth);
3106+
var panelHeight = Math.max(panelBounds.height, panelEl[0].clientHeight);
31073107

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

0 commit comments

Comments
 (0)