Add a (commented-out) way to see the initial visualViewport scale and size
Ideally it should update as the device is rotated or the document window is resized by Split View. We should have some field somehwere where all kinds of debugging information, including this visualViewport information, would be displayed by simply un-commenting a single line. Change-Id: I7d3960440272c03040e0f4ad5dd65f49d5a98780 Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91437 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
This commit is contained in:
parent
7e992e4d4f
commit
b0c09e14da
1 changed files with 5 additions and 1 deletions
|
@ -1735,7 +1735,11 @@ function onDocLayerInit() {
|
|||
$('#document-name-input').focus(function() { $(this).blur(); });
|
||||
// Call decodecodeURIComponent twice: Reverse both our encoding and the encoding of
|
||||
// the name in the file system.
|
||||
$('#document-name-input').val(decodeURIComponent(decodeURIComponent(map.options.doc.replace(/.*\//, ''))));
|
||||
$('#document-name-input').val(decodeURIComponent(decodeURIComponent(map.options.doc.replace(/.*\//, '')))
|
||||
// To conveniently see the initial visualViewport scale and size, un-comment the following line.
|
||||
// + ' (' + window.visualViewport.scale + '*' + window.visualViewport.width + 'x' + window.visualViewport.height + ')'
|
||||
// TODO: Yes, it would be better to see it change as you rotate the device or invoke Split View.
|
||||
);
|
||||
}
|
||||
|
||||
if (!window.ThisIsTheiOSApp && window.mode.isTablet()) {
|
||||
|
|
Loading…
Reference in a new issue