| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
View your CI Pipeline Execution ↗ for commit 6b21744
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at 2026-10-05 18:09:04 UTC |
Sorry, something went wrong.
npm i https://pkg.pr.new/@nativescript/core@11468 npm i https://pkg.pr.new/@nativescript/vite@11468 npm i https://pkg.pr.new/@nativescript/webpack@11468 commit: 6b21744 |
Sorry, something went wrong.
View gains _setChildPercentSize(child, horizontal, fraction), which returns false. A percentage width or height is handed to the parent's; when it returns true, core leaves the XAML Width/Height unset and skips its own percent sizing. Setting a length clears it (fraction null).
| Back | FazBrowse Home | New Git URL |
PR Checklist
What is the current behavior?
On Windows, a percentage width/height is resolved by the view itself:
A parent that lays out its children with its own engine can't use that. The value ignores the parent's padding and the child's position in a row, and Stretch can't express 100% of a row item or a percentage height. The explicit XAML Width also overrides whatever size the parent's layout gives the child.
What is the new behavior?
The Windows View gains _setChildPercentSize(child, horizontal, fraction): boolean, which returns false by default. It's declared, Windows-only, in index.d.ts. A view with a percentage width or height hands it to its parent's _setChildPercentSize. When that returns true:
Setting a length later calls it again with null to clear it. Every existing parent uses the default, so their behavior doesn't change.
Related: triniwiz/nativescript-mason#67 overrides it for its layouts.
Testing: tested on Windows x64 with that branch, covering 50% in a row, 100% × 100% in a row, 50% height with margins in a fixed-height column, and 75% of a grid cell. All resolve against the containing block. tsc -p packages/core/tsconfig.lib.json reports no errors. There are no specs for the Windows view.