Skip to main content

Bug Tracker

Side navigation

#1613 closed bug (fixed)

Opened September 14, 2007 12:47AM UTC

Closed December 11, 2007 04:46AM UTC

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:
Description

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?

Attachments (0)
Change History (5)

Changed September 16, 2007 01:43PM UTC by arrix comment:1

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~

Changed September 16, 2007 02:36PM UTC by arrix comment:2

A related ticket has been created here #1629

Changed September 27, 2007 03:34PM UTC by brandon comment:3

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

Changed September 27, 2007 03:34PM UTC by brandon comment:4

milestone: 1.2.11.2.2

Changed December 11, 2007 04:46AM UTC by brandon comment:5

resolution: → fixed
status: newclosed

Fixed in Rev [4100].