maxHeight

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the maxHeight of <stack> to <pixels>
Associationsstack
Summary

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the maxHeight of stack "Help" to 500
set the maxHeight of the target to (item 2 of the screenRect - 48)
Values
NameTypeDescription
Value

The maxHeight of a stack is a positive integer. By default, the maxHeight property of newly created stacks is set to 65535.

RelatedKeyword: rectangle, integer
Property: minHeight, pixels, height, properties, maxWidth
Command: reset
Function: stacks
Glossary: property, title bar, handler, stack window
Object: stack
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's height property (or related properties such as the rectangle). It affects only user actions. If you set the stack's 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.

Tagswindowing