fix(firefox): inconsistent behavior of breadcrumb

This commit is contained in:
Ejaaz Khan 2026-02-16 12:34:06 +05:30
parent 1361b49316
commit e8fedb200b

View file

@ -660,7 +660,7 @@ frappe.ui.form.Form = class FrappeForm {
configure_breadcrumb_width() {
let el = this.page.page_actions[0];
const rect = el.getBoundingClientRect();
let is_outside = rect.right > document.documentElement.clientWidth;
let is_outside = cint(rect.right) > cint(document.documentElement.clientWidth);
if (is_outside) {
// check if the default actions are outside of the screen