Opposite of [tag::hidden] or [tag::invisible] depending upon context.
Questions tagged [visible]
956 questions
214
votes
4 answers
How can I check if a view is visible or not in Android?
I set visibility to invisible like this on Android:
myImageView.setVisibility(View.INVISIBLE);
And then to make it visible:
myImageView.setVisibility(View.VISIBLE);
Now I don't know if myImageView is visible or not, how can I check it like…

Martin
- 2,319
- 4
- 17
- 13
195
votes
15 answers
Android: how to check if a View inside of ScrollView is visible?
I have a ScrollView which holds a series of Views. I would like to be able to determine if a view is currently visible (if any part of it is currently displayed by the ScrollView). I would expect the below code to do this, surprisingly it does…

ab11
- 19,770
- 42
- 120
- 207
137
votes
5 answers
Jquery check if element is visible in viewport
Function to check if the div class "media" is within the browsers visual viewport regardless of the window scroll position.
My first HTML document
…

Vim Bonsu
- 1,852
- 6
- 21
- 28
113
votes
11 answers
How to use protractor to check if an element is visible?
I'm trying to test if an element is visible using protractor. Here's what the element looks like:
When in the chrome console, I can use this jQuery selector to test if the element is…

limp_chimp
- 13,475
- 17
- 66
- 105
105
votes
12 answers
Best way to check if UITableViewCell is completely visible
I have a UITableView with cells of different heights and I need to know when they are completely visible or not.
At the moment I am looping through each cell in the list of visible cells to check if it is completely visible every time the view is…

RohinNZ
- 3,338
- 5
- 24
- 34
94
votes
4 answers
Get the visible height of a div with jQuery
I need to retrieve the visible height of a div within a scrollable area. I consider myself pretty decent with jQuery, but this is completely throwing me off.
Let's say I've got a red div within a black wrapper:
In the graphic above, the jQuery…

JacobTheDev
- 17,318
- 25
- 95
- 158
65
votes
7 answers
How can you tell if a View is visible on screen in Android?
I want to check if a View within a ScrollView is currently visible in Android. I am not checking if it is focused on yet but if it is currently being displayed on screen. Is there a method in View that can tell me if the view is currently visible?

user1847544
- 957
- 2
- 9
- 17
61
votes
4 answers
How to wait for an element to be visible?
Is it possible to wait until an element is visible?
cy.get('[data-test=submitIsVisible]').should('be.visible');
This should error if the submit button is not visible. I want to wait until the submit button is visible.
The primary use case is visual…

KayakinKoder
- 3,243
- 3
- 23
- 37
60
votes
5 answers
Set Visible property with server tag <%= %> in Framework 3.5
I have been working in a .NET Framework 4 project using server tags like <%=whatever %> to set the visibility of runat="server" controls, like the following:
…

tomasofen
- 1,330
- 2
- 12
- 16
46
votes
6 answers
jQuery if statement to check visibility
I'm trying to write a script that will hidden/show div depending on other elements visibility. The action should take place when i click on other element. Here's what I've wrote so far:
$('#column-left form').hide();
…

Tomarz
- 1,097
- 4
- 15
- 25
37
votes
6 answers
Check div is hidden using jQuery
This is my div
Then I have a Show button that will show the div when you click:
$("show").click(function() {
$("$car2").show();
});
So right now I want to check if the div #car2 is still hidden…

cyberfly
- 5,568
- 8
- 50
- 67
34
votes
4 answers
Android - how update widget often but only when it is visible?
I'm going to create widget which needs to update its content every minute (it shows time-related data).
However, there is no need to update widget if it is currently invisible, which means:
screen is turned off
another app is running
widget is…

tomash
- 12,742
- 15
- 64
- 81
33
votes
2 answers
What's the difference in Qt between setVisible, setShown and show/hide
Please excuse this potentially noobish question but when trying to hide a QWidget what is the difference between calling setVisible(False), setShown(False) and hide()?

Jay
- 3,373
- 6
- 38
- 55
26
votes
10 answers
Scroll if element is not visible
how to determine, using jquery, if the element is visible on the current page view. I'd like to add a comment functionality, which works like in facebook, where you only scroll to element if it's not currently visible. By visible, I mean that it is…

macpak
- 1,190
- 1
- 14
- 28
23
votes
9 answers
this.Visible is not working in Windows Forms
I have a problem. I need to hide my window at window load. But
private void Form1_Load(object sender, EventArgs e)
{
this.Visible = false;
}
is not working. And property Visible remains true. Am I missing something?

Barun
- 1,885
- 3
- 27
- 47