maxHeight

Specifies how tall a stack window can be made when it's being resized.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the maxHeight of stack to pixels

# Examples

set the maxHeight of stack "Help" to 500

set the maxHeight of the target to (item 2 of the screenRect - 48)

# Description

Use the maxHeight property if you want the user to be able to resize the stack window, but limited to a height you choose.

The maxHeight is the maximum height in pixels. The height does not include the window's title bar or borders.

The maxHeight property does not prevent a handler from changing the stack height property (or related properties such as the rectangle). It affects only user actions. If you set the stack height to a value greater than the maxHeight, it is reset to the maxHeight when you close and reopen the stack.

If the stack's resizable property is false, the setting of this property has no effect.

>*Note:* The current architecture uses 16-bit signed integers for all > co-ordinates, which means that the value range is -32768 to 32767.

# Tags

# See

- **keyword:** rectangle, integer - **property:** minHeight, pixels, height, properties, maxWidth - **command:** reset - **function:** stacks - **glossary:** property, title bar, handler, stack window - **object:** stack