# getContainerRect

Get container dimensions.

## Input
param inherits from [standard-object-input](https://open.feishu.cn/document/uAjLw4CM/uYjL24iN/block/api/standard-object-input), no additional extended attributes.

## Output

`success` returns the extended properties of the object:

Parameter | Data type | Description
---|---|---
width | number | width, in px
height | number | height, in px

## Sample code
### Sample request
```json
{
  "sourceData":{
          "tab": "api",
          "item": "getContainerRect"
  },
    "openDetail": 1,
    "title": "getContainerRect",
    "list_page_url": "https://applink.feishu.cn/client/block/workplace/open?appId=cli_a00834ec56f8d01b%26blockTypeId=blk_610a40455f800004c32b6bb6%26sourceData=%7B%22tab%22%3A%22api%22%2C%22item% 22%3A%22login%22%7D",
    "min_lk_ver": {
        "pc": "5.10.0",
        "mobile": "5.11.0"
    },
    "blockEntity": {
        "sourceData": {
            "type": "api",
            "item": "getContainerRect",
            "isNew": true
        },
                  "blockID": "mock-block"
    }
}
```

````js
tt.getContainerRect({
  success (res) {
    console.log('getContainerRect called successfully', res);
  },
  fail (res) {
    console.log('getContainerRect call failed', res.errMsg);
  },
  complete(res) {
    console.log('getContainerRect call ended', res.errMsg);
  }
});
````

### Sample response
````json
{
  "errMsg": "getContainerRect:ok",
  "width": 0,
  "height": 0
}
````