mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +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,
|
||||
) {
|
||||
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 };
|
||||
|
||||
void BrowserApi.tabSendMessage(
|
||||
|
||||
@@ -749,7 +749,7 @@ class AutofillOverlayContentService implements AutofillOverlayContentServiceInte
|
||||
|
||||
if (
|
||||
this.focusedFieldData.focusedFieldRects?.top > 0 &&
|
||||
this.focusedFieldData.focusedFieldRects?.top < window.innerHeight
|
||||
this.focusedFieldData.focusedFieldRects?.top < window.innerHeight + window.scrollY
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user