max dimensions
March 12, 2008 - 12:57pm — markusb
| Project: | Dimensions |
| Version: | 1.2.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I needed to find out the width and height of the document or the window whichever is larger. This is useful when calculating sizes of absolutely positioned elements. I thought it belongs in the dimensions plugin so I decided to send a patch in case you want to include it.
It works like this:
$.dimensions.max('width');
$.dimensions.max('height');| Attachment | Size |
|---|---|
| max_dimensions.patch | 572 bytes |