Skip to content

Commit 3d3ec70

Browse files
committed
fix: 修复工具栏隐藏后死循环问题
1 parent a37b015 commit 3d3ec70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ const setObserver = el => {
226226

227227
const relayoutToolbar = el => {
228228
const toolbar = el.querySelector(".bb-view-toolbar");
229-
if (toolbar === null) {
229+
if (toolbar === null || toolbar.offsetWidth === 0) {
230230
return;
231231
}
232232

0 commit comments

Comments
 (0)