OSDN Git Service

SelectBox: maxListCount off-by-one bug quick fix
authorCord Rehn <jordansg57@gmail.com>
Mon, 3 Jun 2013 06:47:41 +0000 (00:47 -0600)
committerCord Rehn <jordansg57@gmail.com>
Mon, 3 Jun 2013 06:47:41 +0000 (00:47 -0600)
commitb98345742be5992085072830c6359f44711ef29d
treed7af3f9a9364f9f7ad07c8ee1a99ff823a644051
parent4775cddebf16f2fcbabbfe8ab21d4efcdbcea4b5
SelectBox: maxListCount off-by-one bug quick fix

The obsolete height-fitting code has a chance to cause an off-by-one-item bug in the drop down box due to a possible precision loss from [ height -=  height % itemHeight ].

This height fitting code is obsolete and unneeded as of the patch implementing maxListCount where the height is calculated off desired number of items and not prefHeight().  This fix simply removes the old code.

This height fitting is now handled
gdx/src/com/badlogic/gdx/scenes/scene2d/ui/SelectBox.java