See https://prototype.lighthouseapp.com/projects/8886/tickets/1034-layouts-getwidth-calculating-incorrectly-with-hidden-elements-and-auto-width#ticket-1034-1
// Either way, it means the element is the width it needs to be
// in order to report an accurate height.
newWidth = getPixelValue(width);
- } else if (width && (position === 'absolute' || position === 'fixed')) {
- newWidth = getPixelValue(width);
+ } else if (positionedWidth && (position === 'absolute' || position === 'fixed')) {
+ newWidth = getPixelValue(positionedWidth);
} else {
// If not, that means the element's width depends upon the width of
// its parent.