mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUAC-698: Record last adjusted display metrics before reflowing and possibly affecting those metrics.
This commit is contained in:
@@ -1585,6 +1585,11 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
|| window.innerWidth != last_width
|
|| window.innerWidth != last_width
|
||||||
|| window.innerHeight != last_height) {
|
|| window.innerHeight != last_height) {
|
||||||
|
|
||||||
|
last_scroll_top = document.body.scrollTop;
|
||||||
|
last_scroll_left = document.body.scrollLeft;
|
||||||
|
last_width = window.innerWidth;
|
||||||
|
last_height = window.innerHeight;
|
||||||
|
|
||||||
// Reposition document such that it's back on-screen
|
// Reposition document such that it's back on-screen
|
||||||
window.scrollTo(document.body.scrollWidth, document.body.scrollHeight);
|
window.scrollTo(document.body.scrollWidth, document.body.scrollHeight);
|
||||||
|
|
||||||
@@ -1621,11 +1626,6 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
// Rescale display appropriately
|
// Rescale display appropriately
|
||||||
GuacUI.Client.updateDisplayScale();
|
GuacUI.Client.updateDisplayScale();
|
||||||
|
|
||||||
last_scroll_top = document.body.scrollTop;
|
|
||||||
last_scroll_left = document.body.scrollLeft;
|
|
||||||
last_width = window.innerWidth;
|
|
||||||
last_height = window.innerHeight;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user