chrv-components 1.12.228 → 1.12.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -4335,16 +4335,16 @@ class ChrPopoverDirective {
|
|
|
4335
4335
|
if (left + updatedTargetRect.width > viewportWidth) {
|
|
4336
4336
|
left = viewportWidth - updatedTargetRect.width;
|
|
4337
4337
|
}
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4338
|
+
if (left < 0) {
|
|
4339
|
+
left = 0;
|
|
4340
|
+
}
|
|
4341
4341
|
// Prevent vertical overflow
|
|
4342
4342
|
if (top + updatedTargetRect.height > viewportHeight) {
|
|
4343
4343
|
top = viewportHeight - updatedTargetRect.height;
|
|
4344
4344
|
}
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4345
|
+
if (top < 0) {
|
|
4346
|
+
top = 0;
|
|
4347
|
+
}
|
|
4348
4348
|
// Apply
|
|
4349
4349
|
this.renderer.setStyle(target, 'top', `${top}px`);
|
|
4350
4350
|
this.renderer.setStyle(target, 'left', `${left}px`);
|