Removed comments
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ee1a7952ad
commit
ff2a1e7617
|
@ -99,8 +99,6 @@ export default class Popover extends Popup {
|
||||||
left = parentRect.left + parentRect.width / 2 - width / 2;
|
left = parentRect.left + parentRect.width / 2 - width / 2;
|
||||||
left = clamp(left, margin, maxRight - width);
|
left = clamp(left, margin, maxRight - width);
|
||||||
}
|
}
|
||||||
/* let left = parentRect.left + parentRect.width / 2 - width / 2;
|
|
||||||
left = clamp(left, margin, maxRight - width); */
|
|
||||||
|
|
||||||
let top;
|
let top;
|
||||||
if (this.direction == 'left')
|
if (this.direction == 'left')
|
||||||
|
@ -122,7 +120,6 @@ export default class Popover extends Popup {
|
||||||
if (this.direction == 'left') {
|
if (this.direction == 'left') {
|
||||||
arrowLeft = 0;
|
arrowLeft = 0;
|
||||||
let arrowTop = arrowOffset;
|
let arrowTop = arrowOffset;
|
||||||
// arrowLeft = clamp(arrowLeft, arrowHeight, width - arrowHeight);
|
|
||||||
arrowStyle.top = `${arrowTop}px`;
|
arrowStyle.top = `${arrowTop}px`;
|
||||||
} else {
|
} else {
|
||||||
arrowLeft = (parentRect.left - left) + parentRect.width / 2;
|
arrowLeft = (parentRect.left - left) + parentRect.width / 2;
|
||||||
|
|
Loading…
Reference in New Issue