diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-10-19 19:42:55 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-10-19 19:42:55 +0900 |
| commit | 87b15df47b38d4a68da8185464c5e4228dca70df (patch) | |
| tree | 3fb2baaaf586777f3ba1c0899a278161b2fb9142 /src/client | |
| parent | New Crowdin updates (#6667) (diff) | |
| download | sharkey-87b15df47b38d4a68da8185464c5e4228dca70df.tar.gz sharkey-87b15df47b38d4a68da8185464c5e4228dca70df.tar.bz2 sharkey-87b15df47b38d4a68da8185464c5e4228dca70df.zip | |
Auto adjust window size
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/components/ui/window.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/components/ui/window.vue b/src/client/components/ui/window.vue index 781c6ef151..d545ac4827 100644 --- a/src/client/components/ui/window.vue +++ b/src/client/components/ui/window.vue @@ -315,11 +315,13 @@ export default defineComponent({ // 高さを適用 applyTransformHeight(height) { + if (height > window.innerHeight) height = window.innerHeight; (this.$el as any).style.height = height + 'px'; }, // 幅を適用 applyTransformWidth(width) { + if (width > window.innerWidth) width = window.innerWidth; (this.$el as any).style.width = width + 'px'; }, |