mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
[PM-5189] Resolving issues that exist for when a page element is scrolled
This commit is contained in:
@@ -600,7 +600,13 @@ class OverlayBackground implements OverlayBackgroundInterface {
|
|||||||
sender: chrome.runtime.MessageSender,
|
sender: chrome.runtime.MessageSender,
|
||||||
) {
|
) {
|
||||||
const display = isOverlayHidden ? "none" : "block";
|
const display = isOverlayHidden ? "none" : "block";
|
||||||
const styles = setTransparentOverlay ? { display, opacity: 0 } : { display };
|
let styles: { display: string; opacity?: number } = { display };
|
||||||
|
|
||||||
|
if (typeof setTransparentOverlay !== "undefined") {
|
||||||
|
const opacity = setTransparentOverlay ? 0 : 1;
|
||||||
|
styles = { ...styles, opacity };
|
||||||
|
}
|
||||||
|
|
||||||
const portMessage = { command: "updateOverlayHidden", styles };
|
const portMessage = { command: "updateOverlayHidden", styles };
|
||||||
|
|
||||||
void BrowserApi.tabSendMessage(
|
void BrowserApi.tabSendMessage(
|
||||||
|
|||||||
@@ -749,7 +749,7 @@ class AutofillOverlayContentService implements AutofillOverlayContentServiceInte
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
this.focusedFieldData.focusedFieldRects?.top > 0 &&
|
this.focusedFieldData.focusedFieldRects?.top > 0 &&
|
||||||
this.focusedFieldData.focusedFieldRects?.top < window.innerHeight
|
this.focusedFieldData.focusedFieldRects?.top < window.innerHeight + window.scrollY
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user