forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbottom.lcdoc
More file actions
40 lines (23 loc) · 1.98 KB
/
Copy pathbottom.lcdoc
File metadata and controls
40 lines (23 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Name: bottom
Type: property
Syntax: set the bottom of <object> to <number>
Summary: Specifies how far an <object|object's> bottom edge is from the top of the window or screen.
Associations: stack,card,field,button,graphic,scrollbar,player,image
Introduced: 1.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
if the bottom of this stack > 600 then changeStackPlacement
Example:
set the bottom of card field 1 to the height of this stack
Value:
The <bottom> of an <object> is an integer. A <negative> <integer> indicates that the position is above the top of the screen or <card> (and therefore cannot be seen).
A stack's <bottom> is the distance in <pixels> from the top edge of the screen.
A card's or control's <bottom> is the distance in <pixels> from the top edge of the <card> to the bottom edge of the <card> or <control>.
Description:
Use the <bottom> <property> to change the vertical placement of a <control> or window.
The <bottom> of a <stack> is in <absolute (screen) coordinates(glossary)>. The <bottom> of a <card> is always equal to the height of the <stack window>; setting the <bottom> of a <card> does not cause a <error|script error>, but it has no effect. The <bottom> of a <group> or <control> is in <relative (window) coordinates(glossary)>.
Changing the <bottom> of an <object> shifts it to the new position without resizing it. To change an <object|object's> height, set its height or <rectangle> <property>.
The <height> <property> of an <object> is equal to its <bottom> minus its <top>.
References: pixels (property), rectangle (property), bottomMargin (property), bottomRight (property), bottomLeft (property), height (property), top (property), card (keyword), integer (keyword), top (keyword), rectangle (keyword), control (keyword), group (command), stack (object), object (object), property (glossary), relative coordinates (glossary), absolute coordinates (glossary), stack window (glossary), error (glossary), negative (glossary)
Tags: ui