Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/dom/src/utils/get_bounding_client_rect.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use floating_ui_utils::{
dom::{get_computed_style, get_window, DomElementOrWindow},
dom::{get_computed_style, get_frame_element, get_window, DomElementOrWindow},
rect_to_client_rect, ClientRectObject, Coords, Rect,
};

Expand Down Expand Up @@ -59,11 +59,9 @@ pub fn get_bounding_client_rect(
if offset_parent.is_some() {
let mut current_window = window;
loop {
let current_iframe = &current_window
.frame_element()
.expect("Window should have frame element option.");
let current_iframe = get_frame_element(&current_window);

if let Some(current_iframe) = current_iframe {
if let Some(current_iframe) = current_iframe.as_ref() {
if offset_window
.as_ref()
.is_some_and(|offset_window| offset_window != &current_window)
Expand Down
2 changes: 1 addition & 1 deletion upstream.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[releases]
core = "1.6.6"
dom = "1.6.8"
dom = "1.6.9"
utils = "0.2.6"
vue = "1.1.2"