clay-server 3.8.0-beta.3 → 3.8.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -332,8 +332,11 @@ function activateTab(termId) {
|
|
|
332
332
|
if (tab.xterm) keyToolbar.bindXterm(tab.xterm);
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
// Mobile viewport handling
|
|
336
|
-
|
|
335
|
+
// Mobile viewport handling. Desktop browsers also expose visualViewport,
|
|
336
|
+
// but applying the full viewport height there makes this panel taller than
|
|
337
|
+
// #main-panels. Because the desktop panel is vertically centered, its top
|
|
338
|
+
// edge (including the header) is then clipped when the browser is resized.
|
|
339
|
+
if (isTouchDevice && window.visualViewport && !viewportHandler) {
|
|
337
340
|
viewportHandler = function () {
|
|
338
341
|
ctx.terminalContainerEl.style.height = window.visualViewport.height + "px";
|
|
339
342
|
fitTerminal();
|
package/package.json
CHANGED