Skip to content

Commit 04333e4

Browse files
chore(window): organize size article
1 parent 8fe217a commit 04333e4

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

components/window/size.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@ position: 1
1212

1313
The Window offers three ways for you to control its size:
1414

15-
* the `Width` and `Height` properties (read more in the [Dimensions]({%slug common-features/dimensions%}) article)
16-
* predefined dimensions through the `Size` property
17-
* binding to its [State](#maximize-and-minimize) to control whether it is minimized, maximized or has the default appearance.
15+
* [Set Width and Height](#set-width-and-height)
16+
* [Predefined Size Options](#predefined-size)
17+
* [Maximize and Minimize](#maximize-and-minimize)
18+
19+
20+
## Set Width and Height
21+
22+
If you know the size you need, just set it to the `Width` and/or `Height` parameters. They can take valid CSS values (see the [Dimensions]({%slug common-features/dimensions%}) article).
23+
24+
>note If you do not set dimensions, no `width` and `height` CSS rules will be set, and the browser will render the Window element with dimensions according to its contents, like any other `<div>` element. This may adversely affect [positioning](position).
1825
1926
>caption Set Width and Height to a Window
2027
@@ -29,7 +36,9 @@ The Window offers three ways for you to control its size:
2936
</TelerikWindow>
3037
````
3138

32-
The `Size` property takes a member of the `Telerik.Blazor.WindowSize` enum. It renders as a class that sets only the width of the dialog, and the height is rendered by the browser based on the contents. The `Width` and `Height` properties take precedence, because they are rendered as inline `style` rules.
39+
## Predefined Size
40+
41+
The `Size` parameter takes a member of the `Telerik.Blazor.WindowSize` enum. It renders as a class that sets only the width of the dialog, and the height is rendered by the browser based on the contents. The `Width` and `Height` properties take precedence, because they are rendered as inline `style` rules.
3342

3443
The `Telerik.Blazor.WindowSize` enum provides the following options:
3544

@@ -52,8 +61,6 @@ The `Telerik.Blazor.WindowSize` enum provides the following options:
5261

5362
>tip If you want to resize the window dynamically through data binding its `Size` property, you may want to data bind the `Width` and `Height` properties as well, so you can reset them to `null` when you want to change the size.
5463
55-
>note If you do not set dimensions, the browser will render the Window element with dimensions according to its contents, like any other `<div>` element. This may adversely affect [positioning](position).
56-
5764
## Maximize and Minimize
5865

5966
The user can maximize and minimize the Window through [action buttons in its titlebar]({%slug components/window/actions%}).

0 commit comments

Comments
 (0)