hyTags
HomeHome DocumentationDocumentation

rect-get-bottom

Gets the bottom position of a rectangle.
Parameter
Type
Description
self
Rect
The rectangle to get the bottom position from.
return
number
The bottom position of the rectangle (top + height).
Test Case:Get bottom position of rect
    <div style="position: absolute; top: 2px; left: 3px; width: 100px; height: 50px"></div>
    
    <selection-get-frame-rect>
    <rect-get-bottom>
    <assert-equal value="52" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed