mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-04-07 14:06:16 +08:00
[DE mobile] Fix Bug 60354
This commit is contained in:
committed by
Oleg Korshul
parent
7abab143d5
commit
7e049af573
@ -46,8 +46,6 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto
|
||||
return 0;
|
||||
}, []);
|
||||
|
||||
const navbarHeight = useMemo(() => getNavbarTotalHeight(), []);
|
||||
|
||||
useEffect(() => {
|
||||
Common.Gateway.on('init', loadConfig);
|
||||
Common.Notifications.on('toolbar:activatecontrols', activateControls);
|
||||
@ -69,6 +67,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto
|
||||
|
||||
useEffect(() => {
|
||||
const api = Common.EditorApi.get();
|
||||
const navbarHeight = getNavbarTotalHeight();
|
||||
|
||||
const onEngineCreated = api => {
|
||||
if(api && isViewer && navbarHeight) {
|
||||
@ -99,6 +98,7 @@ const ToolbarController = inject('storeAppOptions', 'users', 'storeReview', 'sto
|
||||
|
||||
const scrollHandler = offset => {
|
||||
const api = Common.EditorApi.get();
|
||||
const navbarHeight = getNavbarTotalHeight();
|
||||
const isSearchbarEnabled = document.querySelector('.subnavbar .searchbar')?.classList.contains('searchbar-enabled');
|
||||
|
||||
if(!isSearchbarEnabled && navbarHeight) {
|
||||
|
||||
Reference in New Issue
Block a user