📝 update english docs to include setSheetOffsets
This commit is contained in:
		
					parent
					
						
							
								359123458d
							
						
					
				
			
			
				commit
				
					
						eaacbc86c7
					
				
			
		
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -682,7 +682,7 @@ Returns the title of the native window.
 | 
			
		|||
**Note:** The title of web page can be different from the title of the native
 | 
			
		||||
window.
 | 
			
		||||
 | 
			
		||||
### `win.setSheetOffset(offset)` _OS X_
 | 
			
		||||
### `win.setSheetOffset(offsetY)` _OS X_
 | 
			
		||||
 | 
			
		||||
Changes the attachment point for sheets on Mac OS X. By default, sheets are
 | 
			
		||||
attached just below the window frame, but you may want to display them beneath
 | 
			
		||||
| 
						 | 
				
			
			@ -693,6 +693,16 @@ let toolbarRect = document.getElementById('toolbar').getBoundingClientRect();
 | 
			
		|||
win.setSheetOffset(toolbarRect.height);
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### `win.setSheetOffsets(offsetX, offsetY)` _OS X_
 | 
			
		||||
 | 
			
		||||
Like `win.setSheetOffset` but allows for an offset along the x-axis to be set
 | 
			
		||||
in addition to the y-axis.
 | 
			
		||||
 | 
			
		||||
```javascript
 | 
			
		||||
let toolbarRect = document.getElementById('toolbar').getBoundingClientRect();
 | 
			
		||||
win.setSheetOffset(toolbarRect.left, toolbarRect.height);
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
### `win.flashFrame(flag)`
 | 
			
		||||
 | 
			
		||||
* `flag` Boolean
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue