Dart API Referencedart:htmlClientRect

ClientRect Interface

dom/interfaces/base/nsIDOMClientRect.idlScriptable
Represents a rectangular box. The type of box is specified by the method that returns such an object. It is returned by functions like element.getBoundingClientRect .
1.0
11.0
Introduced
Gecko 1.9
Inherits from: nsISupports Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)

Fields

Code final num bottom #

Y-coordinate, relative to the viewport origin, of the bottom of the rectangle box. Read only.
final num bottom;

Code final num height #

Height of the rectangle box (This is identical to bottom minus top). Read only.
final num height;

Code final num left #

X-coordinate, relative to the viewport origin, of the left of the rectangle box. Read only.
final num left;
X-coordinate, relative to the viewport origin, of the right of the rectangle box. Read only.
final num right;

Code final num top #

Y-coordinate, relative to the viewport origin, of the top of the rectangle box. Read only.
final num top;

Code final num width #

Width of the rectangle box (This is identical to right minus left). Read only. Requires Gecko 1.9.1
final num width;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.