Bug Tracker


Ticket #7542 (closed feature: patchwelcome)

Opened 3 years ago

Last modified 2 years ago

scrollWidth/scrollHeight function

Reported by: george_xalias@… Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocking: Blocked by:


I would like a function to return the actual width of an element event if it is overflow:hidden;

Actual width: the width the element would have if it had width:auto and it was under the body element. e.g. I have a table of divs that hold text. If text is too much for the current div to show (actual width) maybe activate a tooltip function. Something like that

Change History

comment:1 Changed 3 years ago by george_xalias@…

Also a serializeArray for all elements not only on forms. I have done something similar but would like it native.

comment:2 Changed 3 years ago by jitter

Please post different feature requests as different tickets

Version 0, edited 3 years ago by jitter (next)

comment:3 Changed 3 years ago by snover

  • Summary changed from JQuery 1.5 suggestion to scrollWidth/scrollHeight function

comment:4 Changed 3 years ago by snover

  • Keywords needsreview added

I’m not sure of the usefulness of this versus $.fn.attr("scrollTop").

comment:5 Changed 3 years ago by dmethvin

  • Keywords needsreview removed
  • Status changed from new to closed
  • Resolution set to patchwelcome

These kinds of suggestions are great to implement as simple plugins where you can test their utility; once they are written and debugged we can consider them for inclusion.

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.