Removed popover changes

This commit is contained in:
Joan Sanchez 2020-03-11 09:39:05 +01:00
parent 43ad139681
commit 17c8336b23
1 changed files with 1 additions and 4 deletions

View File

@ -85,10 +85,7 @@ export default class Popover extends Popup {
let maxWith = maxRight - margin; let maxWith = maxRight - margin;
let maxHeight = maxBottom - margin - arrowHeight; let maxHeight = maxBottom - margin - arrowHeight;
const scrollbarWidth = (popoverRect.width); let width = clamp(popoverRect.width, parentRect.width, maxWith);
const innerEl = this.windowEl.querySelector('.content > *');
console.log(innerEl);
let width = clamp(popoverRect.width, parentRect.width, maxWith) + 20;
let height = popoverRect.height; let height = popoverRect.height;
let left = parentRect.left + parentRect.width / 2 - width / 2; let left = parentRect.left + parentRect.width / 2 - width / 2;