1
Vote

Gimme.getStyle reports incorrect value for width of percentage-width elements

description

consider <div id='test' style='height:100%; width:100%'></div> as the only content on a page. When Gimme is asked for the width of this element, it finds the percentage width and then converts that to a pixel value by setting the percentage value to the height of an element with the same dimensions as the target. In our test's case, that makes it return the pixel height of the test element rather than its width, even though it was the width that was requested.

comments

sstchur wrote Dec 10, 2011 at 12:44 PM

My apologies for just now seeing this -- don't know how it slipped through. Are you still using & having issues with this method?

The latest version of Gimme should have this fixed.

wrote Feb 13, 2013 at 1:49 AM