Bug Tracker

Opened 6 years ago

Closed 6 years ago

#9984 closed enhancement (invalid)

Enhancement: "visibility" manipulation

Reported by: michael@… Owned by: michael@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:


I've often found visibility manipulation would be useful alongside the usual manipulation of the display style via show()/hide()/toggle().

One proposal would be to create function reveal()/vanish()/toggleClass() to do the equivalent for visibility, but if that's too much new surface area for the API, how about a new option parameter, with a boolean "visibility" flag. So $("foo").show({visibility: true}).

Use case: A "loading" message shown below a form field. Toggling with show()/hide() causes the whole form to be displaced.

Note (1): I took a straw poll and found 8 out of 8 people want visibility in the core: https://plus.google.com/106413090159067280619/posts/ZxRsZ9fyUtb (Though I realise a poll like this is probably more biased towards people wanting new features.)

Note (2): As Paul Irish pointed out in the comments to that poll, there's an argument this should be about opacity rather than visibility, though that's probably something that could take place behind the scenes.

Change History (2)

comment:1 Changed 6 years ago by dmethvin

Owner: set to michael@…
Status: newpending

You can already animate the opacity ... what does this provide other than saving a few characters of typing?

comment:2 Changed 6 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.