You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/window/size.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,16 @@ position: 1
12
12
13
13
The Window offers three ways for you to control its size:
14
14
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).
18
25
19
26
>caption Set Width and Height to a Window
20
27
@@ -29,7 +36,9 @@ The Window offers three ways for you to control its size:
29
36
</TelerikWindow>
30
37
````
31
38
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.
33
42
34
43
The `Telerik.Blazor.WindowSize` enum provides the following options:
35
44
@@ -52,8 +61,6 @@ The `Telerik.Blazor.WindowSize` enum provides the following options:
52
61
53
62
>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.
54
63
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
-
57
64
## Maximize and Minimize
58
65
59
66
The user can maximize and minimize the Window through [action buttons in its titlebar]({%slug components/window/actions%}).
0 commit comments