jQuery: The Write Less, Do More JavaScript Library

max dimensions

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');

AttachmentSize
max_dimensions.patch572 bytes