Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 48b529e

Browse files
committed
There is no word 'layouting' in English.
1 parent 794188f commit 48b529e

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

ApiReference/ui/core/view/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ var uicoreview = require("ui/core/view");
1212

1313
Class | Description
1414
------|------------
15-
[View](../../../ui/core/view/View.md) | This class is the base class for all UI components.
16-
A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
17-
[CustomLayoutView](../../../ui/core/view/CustomLayoutView.md) | Base class for all UI components that implements custom layouts.
15+
[View](../../../ui/core/view/View.md) | This class is the base class for all UI components.
16+
A View occupies a rectangular area on the screen and is responsible for drawing and laying out of all UI components within.
17+
[CustomLayoutView](../../../ui/core/view/CustomLayoutView.md) | Base class for all UI components that implements custom layouts.
1818

1919
Object | Description
2020
------|------------
@@ -52,4 +52,4 @@ Returns an instance of a view (if found), otherwise undefined.
5252
- **isEventOrGesture(** name _String_, view [_View_](../../../ui/core/view/View.md) **)** _Boolean_
5353
- **name** - _String_
5454
- **view** - [_View_](../../../ui/core/view/View.md)
55-
- _**return**_ - _Boolean_
55+
- _**return**_ - _Boolean_

ApiReference/ui/core/view/View.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ description: "Class ui/core/view.View"
66
## Class: "ui/core/view".View
77
_Inherits:_ [_ProxyObject_](../../../ui/core/proxy/ProxyObject.md)
88
_Conform to:_ [_ApplyXmlAttributes_](../../../ui/core/view/ApplyXmlAttributes.md)
9-
This class is the base class for all UI components.
10-
A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
9+
This class is the base class for all UI components.
10+
A View occupies a rectangular area on the screen and is responsible for drawing and laying out of all UI components within.
1111

1212
##### Static Properties
1313
- **loadedEvent** - _String_.
@@ -195,7 +195,7 @@ Returns a value indicating whether this view or one of its descendants actually
195195
- **setInlineStyle(** style _String_ **)**
196196
Sets in-line CSS string as style.
197197
- **style** - _String_
198-
- In-line CSS string.
198+
- In-line CSS string.
199199
- **getGestureObservers(** type [_GestureTypes_](../../../ui/gestures/GestureTypes.md) **)** __...
200200
- **type** - [_GestureTypes_](../../../ui/gestures/GestureTypes.md)
201201
- _**return**_ - __ of [_GesturesObserver_](../../../ui/gestures/GesturesObserver.md)
@@ -206,11 +206,11 @@ Returns a value indicating whether this view or one of its descendants actually
206206
- **callback** - _Function_(args [_GestureEventData_](../../../ui/gestures/GestureEventData.md))
207207
- A function that will be executed when gesture is received.
208208
- **thisArg** - _(optional)_ - _Object_
209-
- An optional parameter which will be used as `this` context for callback execution.
209+
- An optional parameter which will be used as `this` context for callback execution.
210210
- **on(** eventNames _String_, gestures, GestureTypes, callback _Function_..., thisArg? _Object_ **)**
211211
A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
212212
- **eventNames** - _String_
213-
- String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change") or you can use gesture types.
213+
- String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change") or you can use gesture types.
214214
- **gestures**
215215
- **GestureTypes**
216216
- **callback** - _Function_(data [_EventData_](../../../data/observable/EventData.md))
@@ -297,4 +297,4 @@ Returns a value indicating whether this view or one of its descendants actually
297297
- **state** - _String_
298298
- **_setNativeViewFrame(** nativeView _Object_, frame _Object_ **)**
299299
- **nativeView** - _Object_
300-
- **frame** - _Object_
300+
- **frame** - _Object_

ui/layouts.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ previous_url: /layouts
1010

1111
NativeScript provides a recursive layout system which sizes and positions [views][views] on the screen.
1212

13-
* [Layouting](#layouting)
13+
* [Layout Process](#layout-process)
1414
* [Measure Pass](#measure-pass)
1515
* [Layout Pass](#layout-pass)
1616
* [Alignment](#alignment)
@@ -19,12 +19,12 @@ NativeScript provides a recursive layout system which sizes and positions [views
1919
* [Layout Paddings](#layout-paddings)
2020
* [Layout Containers](#layout-containers)
2121
* [Repeating layout children](#repeating-layout-children)
22-
23-
## Layouting
2422

25-
Layouting is the process of measuring and positioning the child views of a [Layout][Layout] container. Layouting is an intensive process whose speed and performance depend on the count of the children and the complexity of the layout container. For example, a simple layout container such as [AbsoluteLayout][AbsoluteLayout] might perform better than a more complex layout container, such as [GridLayout][GridLayout].
23+
## Layout Process
2624

27-
Layouting completes in two passes - a measure pass and a layout pass. Every layout container provides its own `onMeasure()` and `onLayout()` methods to achieve its own specific layouting.
25+
Layout is the process of measuring and positioning the child views of a [Layout][Layout] container. Layout is an intensive process whose speed and performance depend on the count of the children and the complexity of the layout container. For example, a simple layout container such as [AbsoluteLayout][AbsoluteLayout] might perform better than a more complex layout container, such as [GridLayout][GridLayout].
26+
27+
Layout completes in two passes - a measure pass and a layout pass. Every layout container provides its own `onMeasure()` and `onLayout()` methods to achieve its own specific layout.
2828

2929
### Measure Pass
3030

@@ -53,7 +53,7 @@ During the layout pass, each [View][View] is placed in a specific layout slot. T
5353

5454
### Alignment
5555

56-
Layouting applies horizontal and vertical alignment only when an element is allocated more size than it needs.
56+
Layout applies horizontal and vertical alignment only when an element is allocated more size than it needs.
5757

5858
The following table shows the valid values of `horizontalAlignment`.
5959

@@ -85,15 +85,15 @@ When you set margins through XML, you can choose between the following approache
8585

8686
## Layouts
8787

88-
`Layout` is the base class for all views that provide positioning of child elements.
88+
`Layout` is the base class for all views that provide positioning of child elements.
8989

9090
You can use the various layout containers to position elements. They evaluate the base properties of [View][View] such as `width`, `height`, `minWidth` and alignments, and expose additional properties for positioning child views (such as the four paddings).
9191

9292
### Layout Paddings
9393

94-
The four padding properties (`paddingTop`, `paddingRight`, `paddingBottom` and `paddingLeft`) describe the distance between the layout container and its children.
94+
The four padding properties (`paddingTop`, `paddingRight`, `paddingBottom` and `paddingLeft`) describe the distance between the layout container and its children.
9595

96-
When set paddings through XML, you can choose between the following approaches.
96+
When set paddings through XML, you can choose between the following approaches.
9797

9898
* **Set one value**: Provide a single value which will be applied on all sides of the view.
9999
* **Set two values**: Provide two values. The first value is applied to the top side, the second value is applied to the right side. Next, the first value is applied to the bottom and the second value - the left side (in that order).
@@ -104,7 +104,7 @@ When set paddings through XML, you can choose between the following approaches.
104104
The following table shows predefined layouts that NativeScript provides.
105105

106106
| Layouts | Description | Screenshot |
107-
| -------- | ------------ | ---------- |
107+
| -------- | ------------ | ---------- |
108108
| [AbsoluteLayout][AbsoluteLayout] | This layout lets you set exact locations (left/top coordinates) for its children. | ![AbsoluteLayout android](http://docs.nativescript.org/img/gallery/android/absoluteLayoutPage.png "AbsoluteLayout android")|
109109
| [DockLayout][DockLayout] | This layout arranges its children at its outer edges and allows its last child to take up the remaining space. | ![DockLayout android](http://docs.nativescript.org/img/gallery/android/dockLayoutPage.png "DockLayout android")|
110110
| [GridLayout][GridLayout] | This layout defines a rectangular layout area that consists of columns and rows. | ![GridLayout android](http://docs.nativescript.org/img/gallery/android/gridLayoutPage.png "GridLayout android")|

0 commit comments

Comments
 (0)