mirror of
https://github.com/kiwix/kiwix-js-pwa.git
synced 2025-09-08 19:57:46 -04:00
Refine focus to support UWP apps
Former-commit-id: 28d36ca19c8d2273a3a156cdb8f5c1eb2c708360 [formerly eeafabdd5ab5525c91e29b42cc05ab48b3bee3e3 [formerly fb2933b9d6cac84d0fbdd2620fe0b7f02ff9465d]] Former-commit-id: cbf35ad957f8e88932b4bb01ab93df0dcedba924 Former-commit-id: bbce0eb68a5fea7c631e84dd385078ac5f904a7e
This commit is contained in:
parent
2f3331ccec
commit
4e258b9352
@ -756,8 +756,10 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'cache', 'images', 'sett
|
||||
document.getElementById('scrollbox').style.height = 0;
|
||||
document.getElementById('search-article').style.overflowY = 'hidden';
|
||||
setTimeout(function() {
|
||||
document.getElementById('articleContent').style.display = 'block';
|
||||
document.getElementById('articleContent').focus();
|
||||
if (appstate.target === 'iframe') {
|
||||
if (articleContainer) articleContainer.style.display = 'block';
|
||||
if (articleWindow) articleWindow.focus();
|
||||
}
|
||||
}, 50);
|
||||
}
|
||||
$("#articleList").empty();
|
||||
|
Loading…
x
Reference in New Issue
Block a user