Ticket #5518 (closed defect: fixed)

Opened 11 months ago

Last modified 5 months ago

dojo.marginBox, set button's width error

Reported by: guest Owned by: sjmiles
Priority: high Milestone: 1.2
Component: HTML Version: 1.0
Severity: normal Keywords:
Cc:

Description (last modified by peller) (diff)

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

Changed 11 months ago by peller

  • milestone changed from 1.0.3 to 1.1

Changed 9 months ago by sjmiles

  • milestone changed from 1.1 to 1.1.1

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.

Changed 7 months ago by guest

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

Changed 6 months ago by peller

  • priority changed from normal to high
  • description modified (diff)

Changed 5 months ago by sjmiles

  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.