mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-26 19:14:12 +00:00 
			
		
		
		
	Auto adjust window size
This commit is contained in:
		
							parent
							
								
									6932d86240
								
							
						
					
					
						commit
						87b15df47b
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -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'; | ||||
| 		}, | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue