You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2015/09/16 15:50:46 UTC

[jira] [Commented] (TAP5-2505) Different behavior of ElementWrapper.visible with jQuery and Prototype

    [ https://issues.apache.org/jira/browse/TAP5-2505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14768961#comment-14768961 ] 

Jochen Kemnade commented on TAP5-2505:
--------------------------------------

I wonder if we need that method anyway. We're only using it in {{datefield.coffee:82}}, but we could probably use {{deepVisible()}} there instead.

> Different behavior of ElementWrapper.visible with jQuery and Prototype
> ----------------------------------------------------------------------
>
>                 Key: TAP5-2505
>                 URL: https://issues.apache.org/jira/browse/TAP5-2505
>             Project: Tapestry 5
>          Issue Type: Bug
>            Reporter: Jochen Kemnade
>
> If an element is hidden via a CSS class, {{dom(element).visible()}} will return {{false}} with jQuery and {{true}} with Prototype.
> This is because the jQuery implementation checks the display style whereas the Prototype implementation uses Element.visible {{http://api.prototypejs.org/dom/Element/visible/}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)