Skip to main content

Bug Tracker

Side navigation

#9984 closed enhancement (invalid)

Opened August 05, 2011 08:36AM UTC

Closed August 20, 2011 07:57AM UTC

Enhancement: "visibility" manipulation

Reported by: michael@mahemoff.com Owned by: michael@mahemoff.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

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.

Attachments (0)
Change History (2)

Changed August 05, 2011 01:27PM UTC by dmethvin comment:1

owner: → michael@mahemoff.com
status: newpending

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

Changed August 20, 2011 07:57AM UTC by trac-o-bot comment:2

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!