Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2eec3d7

Browse files
committed
Add documentation for window zoom factor
1 parent e8f0590 commit 2eec3d7

File tree

1 file changed

+14
-0
lines changed
  • resources/views/docs/desktop/1/the-basics

1 file changed

+14
-0
lines changed

resources/views/docs/desktop/1/the-basics/windows.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,20 @@ Window::open()
394394

395395
This is particularly useful for always-on-top utility windows or menubar applications that should not be visible in Mission Control.
396396

397+
### Zoom factor
398+
399+
In certain cases, you may want to set a zoom factor for a window.
400+
This can be particularly helpful in cases where you have no control over the content displayed (e.g. when showing external websites).
401+
You may use the `zoomFactor` method to define a zoom factor.
402+
403+
```php
404+
Window::open()
405+
->zoomFactor(1.25);
406+
```
407+
408+
The zoom factor is the zoom percent divided by 100.
409+
This means that you need to pass the value `1.25` if you want the window to be displayed at 125% size.
410+
397411
## Window Title Styles
398412

399413
### Default Title Style

0 commit comments

Comments
 (0)