Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#10125 closed bug (invalid)

Canvas creation Height/Div problem

Reported by: Py Owned by:
Priority: low Milestone: None
Component: core Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:


When creating a canvas using the following:


You would expect a canvas created with it's width and height set to the value specified.

However, the current implementation transform those width and height to css width and height.

To implement a correct canvas, the following is needed.


Change History (4)

comment:2 Changed 11 years ago by timmywil

Component: unfiledcore
Priority: undecidedlow
Resolution: invalid
Status: newclosed

This is the desired behavior. Use the .attr() method to specifically set the width/height attributes. As you can see from the fiddle, the style tag takes precedence over the width/height attributes. It is used for that reason.

comment:3 Changed 11 years ago by addyosmani

#10040 is a duplicate of this ticket.

comment:4 Changed 11 years ago by Rick Waldron

#11715 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.