| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Just to note that the class that is "Base class for all views that supports children positioning in cross platform manner" is now CustomLayoutView. |
Sorry, something went wrong.
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
I came upon the Layout class by accident and I think it should be removed as it is not used anywhere in NativeScript besides in the unit tests app (where it can and should be replaced by LayoutBase). I could not find any clues or user guidelines that would describe how to use this class so I think it is some kind of legacy that we do not need any more. Code comments note that it is "Base class for all views that supports children positioning in cross platform manner" but that is not (no longer?) true as all built-in layouts inherit from LayoutBase/CustomLayoutView directly.
BREAKING CHANGE:
Layout class (tns-core-modules/ui/layouts/layout) is now removed as it is not used in {N} framework any more.
Before:
Built-in {N} layouts GridLayout, StackLayout, WrapLayout, etc. extended Layout class
After:
Built-in {N} layouts GridLayout, StackLayout, WrapLayout, etc. now extend LayoutBase class
To migrate your code follow the example below:
Before:
After: