Per Cederberg schrieb: > Yes, well. I was thinking simpler is better. So I though a single flag > would be sufficient to either remove both padding and borders, or to > keep the values unchanged (as today). If someone wants more detail, > there is always the helper functions for retrieving padding and border > widths.
Ok, I agree a single parameter with default set for the current behavior is best. Let me know which you prefer of innerWidth=False or withBorder=True or extend=2 (where extend can be 0, 1, 2, 3 for inner, with padding, border, margin). > I was kind of thinking to include those first in version 1.5, but now > that they seem important in order to fix this bug I think we might as > well include them in 1.4. Need to create some good test cases for all > of this though. And docs. Feel free to fix these issues if you have > time during the weekend. I'll let you know if I commit anything to svn > related to this. Ok. You are referring to http://trac.mochikit.com/ticket/84 here, right? Btw, I think the name getPaddingBox suggested there for getting only the padding is misleading; I would think that getPaddingBox should return getElementDimensinos(extend=1) as discussed above. -- Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
