Moves and resizes objects according to their Geometry pane settings.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
revUpdateGeometry
# Examples
revUpdateGeometry
if the width of this stack > 100 then revUpdateGeometry
# Description
The LiveCode development environment automatically executes the revUpdateGeometry command when a resizeStack message is sent. Use the revUpdateGeometry command if your stack handles the resizeStack message without passing it.
Normally, you do not need to use the revUpdateGeometry command at all, since LiveCode automatically updates geometry when a stack is resized. Use it only if both the following conditions are true:
1. Your stack uses the Geometry pane of the property inspector to automate object positioning and sizing when the stack window is resized, and 2. Either a handler in your stack locks messages and then moves or resizes the stack window, or a resizeStack handler in your stack does not pass the resizeStack message at the end of the handler.
If both these conditions are true, execute the revUpdateGeometry command in the handler, after the resizing is performed, to perform Geometry tasks.
>*Important:* The revCacheGeometry command is part of the > Geometry library. To ensure that the command works in a > standalone application, you must include this > LiveCode custom library when you create your > standalone application. In the Inclusions pane of the > Standalone Application Settings window, make sure the "Geometry" > library checkbox is checked.
# Tags
ui,
# See
- **message:** resizeStack, startup, openBackground, preOpenStack, openStack, preOpenCard - **command:** revCacheGeometry, lock messages - **object:** stack - **glossary:** object, LiveCode custom library, main stack, handler, handle, message, group, standalone application, Standalone Application Settings, command, application - **library:** Geometry library, library