Implement new dimension param helpers
Reported by John-David Dalton | 2009-02-04 10:43:34 UTC
===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 2009-02-08 13:08:31 UTC
- Assigned user changed from John-David Dalton to Joe Gornick
-

John-David Dalton 2009-07-03 17:47:04 UTC
- Milestone cleared.
-

Joe Gornick 2009-08-26 01:20:18 UTC
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 2009-08-26 01:23:37 UTC
Here's another url we should keep track of: http://msdn.microsoft.com/en-us/library/ms530302(VS.85).aspx
-

Joe Gornick 2009-08-30 15:28:26 UTC
- State changed from new to patched
- Assigned user changed from Joe Gornick to John-David Dalton
-

John-David Dalton 2009-09-01 11:19:00 UTC
- 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.