0

I use PhoneGap for Android

I have some inputs... by clicking on one of them I open a div on all screen (the same div) by clicking on the two input everything is normal, but in the third appears to me the following error message in console:

Doing a super.requestRectangleOnScreen

What does this mean? It gives me problems on overriding the back button ..

Full log output:(When click on input with problem)

01-15 15:13:40.360: D/navcache(2231): cursorInputFieldAction cursor=8ef220, cursorFrame=a8cf78
01-15 15:13:40.360: D/navcache(2231): CachedFrame::previousInputField this=a8cf78, start=8ef220, begin=8eee38 end=8ef540
01-15 15:13:40.360: D/navcache(2231): CachedFrame::nextInputField this=a8cf78, start=8ef220, begin=8eee38 end=8ef540
01-15 15:13:40.360: D/navcache(2231): cursorInputFieldAction next=8ef284, prev=0, action=4
01-15 15:13:40.372: D/SoftKeyboardDetect(2231): Ignore this event
01-15 15:13:40.563: D/SoftKeyboardDetect(2231): Ignore this event
01-15 15:13:40.778: V/webview(2231): OnSizeChanged: Enter 
01-15 15:13:41.336: D/SoftKeyboardDetect(2231): Ignore this event
01-15 15:13:41.336: E/webtextview(2231): ....Doing a super.requestRectangleOnScreen....

Full log output:(When click on input without problem)

01-15 15:17:29.813: D/navcache(2231): cursorInputFieldAction cursor=6ac13c, cursorFrame=81aba0
01-15 15:17:29.813: D/navcache(2231): CachedFrame::previousInputField this=81aba0, start=6ac13c, begin=6abcf0 end=6ac3f8
01-15 15:17:29.813: D/navcache(2231): CachedFrame::nextInputField this=81aba0, start=6ac13c, begin=6abcf0 end=6ac3f8
01-15 15:17:29.813: D/navcache(2231): cursorInputFieldAction next=6ac1a0, prev=6ac0d8, action=5
01-15 15:17:29.836: D/SoftKeyboardDetect(2231): Ignore this event
01-15 15:17:30.196: V/webview(2231): OnSizeChanged: Enter 
01-15 15:17:30.598: D/SoftKeyboardDetect(2231): Ignore this event
01-15 15:17:30.598: I/dalvikvm(2231): Jit: resizing JitTable from 4096 to 8192
01-15 15:17:30.680: D/SoftKeyboardDetect(2231): Ignore this event

the Error input:

  <input onkeydown="X();" onclick="OpenOnScreen();" oninput="XXX();" type="text"  id="ErrorInp"  />

the Good input:

  <input onkeydown="X();" onclick="OpenOnScreen();" oninput="XXX();"  type="text" id="GoodInp" />

the DIV that open on all screen:

<div id="OpenDiv">
           ...
        </div>

Style:

#OpenDiv
{
    background-color: yellowGreen;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 7000;
    display: none;
}

Function OpenOnScreen:

function OpenOnScreen() {
    $('#OpenDiv').css('display', 'block');
}

When I define the height of the div to 80% I do not get this error message and the back button works, why is this happening? (I need its height will be 100%)

4

1 回答 1

0

此输出不是错误。它只是请求此视图的矩形在屏幕上可见。如果 View 维护了关于其内容的哪一部分有趣的概念,则应该调用它。例如,文本编辑视图应该在其光标移动时调用它。

我猜,不能告诉你为什么(我看不到你的代码) phonegap 正在访问当前View中的矩形Rect对象。所以忽略这个,这只是一个后台java通知。

我在此输出中看不到任何真正的错误,因此我认为您的问题出在 javascript 方面。

于 2013-01-15T13:33:16.413 回答