Bug Tracker

Opened 15 years ago

Closed 15 years ago

#1613 closed bug (fixed)

widtt() and height() seems to reset element width/height css properties

Reported by: daepark Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2
Keywords: Cc:
Blocked by: Blocking:


Everytime I call $(elt).height() or $(elt).width(), I see the elt flickering which leads me to believe these get methods are resetting the width/height css values every times I call them?

Change History (5)

comment:1 Changed 15 years ago by arrix

Actually, it's resetting borderWidth/Height and paddingWidth/Height.

Near core.js line 641

jQuery.each( d, function(){
  old["padding" + this] = 0;
  old["border" + this + "Width"] = 0;

If you have specified paddings for the element, it will flicker when you call .height(). This is visually annoying~

comment:2 Changed 15 years ago by arrix

A related ticket has been created here #1629

comment:3 Changed 15 years ago by brandon

As a temporary workaround I've found that using .css('width') and .css('height') does not flicker as bad if not at all.

comment:4 Changed 15 years ago by brandon


comment:5 Changed 15 years ago by brandon

Resolution: fixed
Status: newclosed

Fixed in Rev [4100].

Note: See TracTickets for help on using tickets.