Bug Tracker

Ticket #1613 (closed bug: fixed)

Opened 15 months ago

Last modified 12 months ago

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:
Needs: Review

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?

Change History

Changed 15 months 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~

Changed 15 months ago by arrix

A related ticket has been created here #1629

Changed 14 months 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.

Changed 14 months ago by brandon

  • milestone changed from 1.2.1 to 1.2.2

Changed 12 months ago by brandon

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

Fixed in Rev [4100].

Note: See TracTickets for help on using tickets.