@@ -39,13 +39,15 @@ void VirtualKeyboard::updateInputBoundsAfterResize()
40 int width = this->width();
40 int width = this->width();
42− int height;
42+ int height = 0;
43− if (this->width() > this->height()) {
44+ if (this->width() > this->height()) {
44− // landscape
45+ // landscape
45− height = this->height() * 0.4;
46+ height = this->height() * 0.4;
47− // portrait
48+ // portrait
48− height = this->width() * 0.6;
49+ height = this->width() * 0.6;
51 int x = 0;
53 int x = 0;