GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — feat(windows): view location in window, on screen and relative to a view by triniwiz · Pull Request #11515 · NativeScript/NativeScript Conversation
Member
PR Checklist
What is the current behavior?On Windows, What is the new behavior?The Windows
Each call makes one or two native calls, and the origin point is created once. Stacked on #11468 (base Testing:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsgetLocationInWindow and getLocationRelativeTo transform the element's origin through XAML; getLocationOnScreen adds the window's client origin, read off its AppWindow (cached per XamlRoot) by a window-helper util.
|
There was an error while loading. Please reload this page.
|
View your CI Pipeline Execution ↗ for commit 83ee840
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
commit: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…g' into fix/windows-view-location # Conflicts: # packages/core/ui/core/view/index.windows.ts
There was an error while loading. Please reload this page.
…11468) * feat(windows): let a parent resolve its children's percentage sizes 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). * feat(windows): view location in window, on screen and relative to a view (#11515) getLocationInWindow and getLocationRelativeTo transform the element's origin through XAML; getLocationOnScreen adds the window's client origin, read off its AppWindow (cached per XamlRoot) by a window-helper util.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.