Bug 11124 - self:getBounds() doesn't return correct values when laying out keyboard
: self:getBounds() doesn't return correct values when laying out keyboard
Status: NEW
Product: SB Touch
Classification: Unclassified
Component: UI
: unspecified
: PC Other
: -- normal (vote)
: 8.1.0
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-18 21:42 UTC by Ben Klaas
Modified: 2011-11-06 23:24 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2009-02-18 21:42:59 UTC
in jive.ui.Keyboard:_layout(), self:getBounds() is used to get initial coordinates of the widget, and this is used to determine where keys go on the screen.

local x, y, w, h = self:getBounds()

However, w returns 0 until the first few rows of the keyboard are setup (presumably because the widget is in the middle of being laid out, so has no width bounds at this stage). This doesn't work for deciding on keySpacing later in the method.

I've got a hack in right now that uses Framework:getScreenSize() for w, minus the padding set in the skin. Evil, but works for now.
Comment 1 Chris Owens 2010-05-07 10:28:34 UTC
Richard is no longer available to us.
Comment 2 Alan Young 2011-11-06 23:24:22 UTC
Unassigned bugs cannot have a priority.