Implement new dimension param helpers
Reported by John-David Dalton | February 4th, 2009 @ 10:43 AM
===Element Dimensions Definitions===
box = margin + border + padding + content
visual = box - margin
client = visual - border
content = client - padding
Box refers to box model dimensions definition: http://www.w3.org/TR/CSS2/box.html
Visual refers to the offset dimensions specified by the MS DHTML object model: https://developer.mozilla.org/en/DOM/element.offsetWidth
Content refers the the content section in the box model definition.
element#getDimensions(String preset | Object options) -> { width: number, height: number }
presets = box, visual, client, content
options = { margin: true, border: true, padding: true }
element#getDimensions() -> Defaults to "visual"
element#getDimensions({ margin: true, border: true, padding: true }) -> returns Object representing box preset
element#getDimensions({ margin: false, border: true, padding: true }) -> returns Object representing visual preset
element#getDimensions({ margin: false, border: false, padding: true }) -> returns Object representing client preset
element#getDimensions({ margin: false, border: false, padding: false }) -> returns Object representing content preset
Comments and changes to this ticket
-
John-David Dalton February 8th, 2009 @ 01:08 PM
- Assigned user changed from John-David Dalton to Joe Gornick
-
John-David Dalton July 3rd, 2009 @ 05:47 PM
- Milestone cleared.
-
Joe Gornick August 26th, 2009 @ 01:20 AM
So the content preset might be confusing. According to: https://developer.mozilla.org/en/Determining_the_dimensions_of_elem..., the content is considered as the scroll dimensions. In the getDimensions case, for the "content" width/height, is it the visible width and height? Or should it be the scroll width/height?
-
Joe Gornick August 26th, 2009 @ 01:23 AM
Here's another url we should keep track of: http://msdn.microsoft.com/en-us/library/ms530302(VS.85).aspx
-
Joe Gornick August 30th, 2009 @ 03:28 PM
- State changed from new to patched
- Assigned user changed from Joe Gornick to John-David Dalton
-
John-David Dalton September 1st, 2009 @ 11:19 AM
- State changed from patched to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.