Bug Tracker

Modify

Ticket #9984 (closed enhancement: invalid)

Opened 3 years ago

Last modified 3 years ago

Enhancement: "visibility" manipulation

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

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.

Change History

comment:1 Changed 3 years ago by dmethvin

  • Owner set to michael@…
  • Status changed from new to pending

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

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

  • Status changed from pending to closed
  • Resolution set to invalid

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!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.