Opened 15 years ago

Closed 14 years ago

#5518 closed defect (fixed)

dojo.marginBox, set button's width error

Reported by: guest Owned by: sjmiles
Priority: high Milestone: 1.2
Component: HTML Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

when I use dojo.marginBox to set a button's width, it seems using wrong box-model. I saw that when the dom node's tagName is BUTTON, it takes use the border-box, but what if it is <input type="button">?

Change History (5)

comment:1 Changed 15 years ago by Adam Peller


comment:2 Changed 14 years ago by sjmiles


This is a relatively easy fix, but first we have to test <input type="button"> on all browsers to make sure they in fact use de facto border-box for this tag as for <button>.

Maybe the poster has already verified this, but it's not clear.

comment:3 Changed 14 years ago by guest

Firefox transitional doctype. <input>, <textarea>... are using "border-box" by default. But dojo take it as content-box anyway.

comment:4 Changed 14 years ago by Adam Peller

Description: modified (diff)
Priority: normalhigh

comment:5 Changed 14 years ago by sjmiles

Resolution: fixed
Status: newclosed

(In [14380]) Detect 'border-box' for 'input' tags of type 'button'. Fixes #5518. !strict

Note: See TracTickets for help on using tickets.