03-31-2011 12:20 PM
API states, the following about isVisible() method:
Determines whether or not this UI element is visible. This method returns true if the UI element is potentially visible. The application must be foreground and the screen must be visible. However, this method might indicate that a screen or field is visible when it is not. Returns: The visibility state of the field or screen. true if the element is visible. Since: BlackBerry API 3.6.0
Does anybody know, under which conditions can this method return true, even if it's not?
03-31-2011 01:19 PM
When a field is scrolled out, for example: the screen it's on is visible, but the field isn't yet. However, it is potentially visible, so isVisible will return true.
I'm curious whether isVisible may return false when the field is actually visible (the other way around). For example, if there is a PopupScreen over a FullScreen and the field is on the FullScreen not obstructed by the popup...