Skip to main content

All Questions

Tagged with
87 questions with no upvoted or accepted answers
3 votes
2 answers
2k views

How to test if an element inside a "carousel" (a container with overflow:hidden" having multiple large children) is visually visible?

I'm looking for a generic (native) Javascript function that could tell if an element is visible, that can take into account elements in a "carousel" (aka "slider"); These are usually containers with "...
Yuval A.'s user avatar
  • 6,049
2 votes
0 answers
111 views

2D visibility algorithm not works well for overlapped case

I find the visibility algorithm in one great website Since it is quiet long ago article, I am not sure that the author will give the answer. As you can see, the interactive playground(try it yourself) ...
Period Positive's user avatar
2 votes
0 answers
612 views

CKEditor on hidden Div

I'm developing a responsive website with 2 CKEditors. One CKEditor is visible and other is hidden: <div id="mainWebContainer" > <div id="mainWebContainerBox"> <textarea name="ck1" id=...
Giulio's user avatar
  • 221
2 votes
1 answer
2k views

How do I hide a div if there are no visible children in AngularJS?

I'm trying to hide a parent div if the child items are all invisible. I can hide the parent if there are no children but cannot determine how to hide based on visibility; <div ng-repeat="group in ...
Brian Scott's user avatar
  • 9,301
2 votes
1 answer
1k views

Selecting :visible table cell with jquery does not work?

I have a table which automatically hides columns on smaller screens. On some columns the header is spanning two rows like so: <table cellspacing="0"> <thead> <tr> <th ...
frequent's user avatar
  • 28.2k
2 votes
4 answers
63 views

Hide an Image and Show it

I have var sanmigBottle = document.createElement('sanmigBottle'); sanmigBottle.id="sanmigBottle"; sanmigBottle.width="25%"; sanmigBottle.src='sanmigbottle.png'; sanmigBottle.onmousedown="...
Jeongbebs's user avatar
  • 4,110
1 vote
0 answers
674 views

React Native: How do I change the scroll position of a ScrollView when the element is not visible?

I have a horizontal FlatList which renders a list of vertical ScrollView cards. When I scroll the FlatList, I would like the ScrollView cards to reset their scroll position to the top. I do not want ...
Thomas's user avatar
  • 11
1 vote
0 answers
57 views

Visibility of ES6 class created via an eval statement

As I go through the process of looking at techniques to improve the load speed & performance of my hybrid Cordova/Android app one of the things I am doing is making the original DOM tree that has ...
DroidOS's user avatar
  • 8,780
1 vote
0 answers
161 views

Toggling Visibility in Vue not working properly

I'm working on a project where I am receiving data from a websocket and then parsing it into an appropriate UI. The problem I'm running into is when I try and toggle the "Components" of a specific "...
Kyle's user avatar
  • 73
1 vote
0 answers
58 views

Jquery trigger function on visibility of element

What I'm aiming at is that each time the button appears an action is triggered on some items. This is what I want to achieve: $(".navbar-toggler").on(":visible", function(){..}) However, I can't ...
codingbudgie's user avatar
1 vote
3 answers
113 views

How to hide and show content under a bar of links?

How do you make a set of links behave like buttons, when one is pressed, it shows some hidden content and when another is pressed it hides the previous content and shows some other content? The first ...
Melody's user avatar
  • 11
1 vote
0 answers
546 views

When toggling column visibility in Tabulator column width is incorrect

I have Tabulator working with column visibility toggle via a dropdown with checkboxes. Checkbox click call toggleColumn() which works however the width of the column doesn't update correctly for every ...
zixy99's user avatar
  • 33
1 vote
0 answers
189 views

mapbox: only show 1 group of markers

Okay, so I have a map with three groups of markers, red, yellow and green. Now I want to add a filter option where you can choose to either show the red, yellow or green ones, or all of them. This ...
EllaV's user avatar
  • 35
1 vote
1 answer
719 views

Auto-Open Accordion When Visible On Screen

I'm trying to enhance the visual impact of a JS accordion by enabling each accordion item to Auto-open as the user scrolls down the page. They do not need to auto-close. The accordion I am using ...
Scott Lee's user avatar
1 vote
3 answers
47 views

JavaScript Function Activation Issues

I have another question that's been bugging my mind since I started using js fairly recently so that my app would be nicely responsive but I've been hit with another block here. As the title says I ...
Arkonsol's user avatar
  • 139

15 30 50 per page
1
2 3 4 5 6