Bugzilla – Bug 11124
self:getBounds() doesn't return correct values when laying out keyboard
Last modified: 2011-11-06 23:24:22 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.
Richard is no longer available to us.
Unassigned bugs cannot have a priority.