sidebar: width is 0 when hidden
This commit is contained in:
		
					parent
					
						
							
								c6f17e8a89
							
						
					
				
			
			
				commit
				
					
						706bc2c1fc
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -19,6 +19,9 @@ define([], function () { | |||
|     sidebar.appendChild(container) | ||||
| 
 | ||||
|     self.getWidth = function () { | ||||
|       if (sidebar.classList.contains("hidden")) | ||||
|           return 0 | ||||
| 
 | ||||
|       var small = window.matchMedia("(max-width: 60em)") | ||||
|       return small.matches ? 0 : sidebar.offsetWidth | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nils Schneider
				Nils Schneider