This project is read-only.

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


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.


sstchur wrote Dec 10, 2011 at 1: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 2:49 AM