@Fox The first place I noticed the problem was when I added a visual to the interface. I added a text link to the interface from the 'textlink' section in the open blocks and inserted an image into it. My aim was to have no text inside and only redirect to a link when the image is clicked. However, no matter how much I removed the predefined "New Link" text, whenever I made an addition or deletion to the interface, it would reappear. To solve this issue, I set the font-size of the text link to 0 using CSS, which prevented the "New Link" text from appearing. The problem I'm talking about is probably similar to what I experienced with the text link. The default values assigned by the system, even if you change them, revert back to the values defined by the system when something new is added to the interface or when a setting is changed (for example, background color or deleting a button). Currently, to overcome this issue, I am constantly keeping a backup of the HTML. Whenever I make a new change, I copy the content from the backup, and this is how I'm trying to deal with it, but it's clear there is a problem. Hopefully, it will be resolved soon.
Visible on screen has a bug?
-
Hi,
I was checking the "is element exists" function in BAS and clicked on "also check if visible on screen" but it always returns true even if it is not visible on screen but it is loaded on the page.
What exactly does visible on screen check because it's clearly not visible on the screen but the element is loaded at the bottom of the page.
Is this a bug?Please check this exampletest.xml
-
@hippyzipp9 This function checks visibility not on the screen (viewport), but in the entire document.
-
Any way to check visibility on viewport? @UserTrue
-
@hippyzipp9 Yes, but this is not a trivial task, it is solved using javascript.
-
My Solution: execute JS on element and
function isInViewport(element) { const rect = element.getBoundingClientRect(); return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth) ); } [[IS_VISIBLE]] = isInViewport(self)1 year))