Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/kasper9n/0056-tauri-smooth-resize.
Something went wrong. Try again.
Files
- TypeScript 60%
- Rust 17%
- Svelte 11%
- JavaScript 8%
- HTML 4%
README.md
Tauri Smooth Resize #
Usage #
import { resize } from 'tauri-smooth-resize'
resize(600, 400)
Tauri window.innerSize() bug #
There's a bug in Tauri 1.0.0-beta.8 that causes it to return old values for window.innerSize() after the user resizes a window. It works correctly in the next branch. You can specify a specific commit as a dependency in Cargo.toml like this:
[dependencies]
tauri = { git = "https://github.com/tauri-apps/tauri", rev = "f8b98ed", features = ["api-all"] }
Dev instructions #
Get started #
- Install Node.js (v14 works)
- Install Rust (v1.50 works)
- Follow the Tauri setup guide
- Run
npm install - Run the example:
cd examplenpm installnpm run dev
Commands #
npm run build: Buildssrc/index.tsto./buildnpm run lint: Lintnpm run test: Run tests fromexample/tests