Skip to content
Snippets Groups Projects
Commit 87b15df4 authored by syuilo's avatar syuilo
Browse files

Auto adjust window size

parent 6932d862
No related branches found
No related tags found
No related merge requests found
......@@ -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';
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment