Per Cederberg schrieb: > Question though, why add MochiKit.Style.getElementHeight and > getElementWidth? I think MochiKit.Style.getElementDimensions was > introduced to have one function instead of two (keeping down the size > of the API). But now we have three, which seems redundant to me.
getElementDimensions returns the dimensions including padding and border, while getElementHeight/Width returns the actual height and width. The problem was that the visual effects calculated the original width and height using getElementDimensions which was too big. I could have put getElementHeight/Width in Visual, but Style seemed more appropriate. Probably we should add documentation and tests for these? -- Christoph --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
