[Tickets #9297] Re: Unnecessary scroll bar on some HTML messages

bugs at horde.org bugs at horde.org
Fri Oct 8 10:37:45 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9297
------------------------------------------------------------------------------
  Ticket             | 9297
  Updated By         | rui.carneiro at portugalmail.net
  Summary            | Unnecessary scroll bar on some HTML messages
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Not A Bug
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


rui.carneiro at portugalmail.net (2010-10-08 06:37) wrote:

> As for the vertical scroll bar - this seems to be a limitation of  
> IFRAME behavior.  I have seen many messages where you resize the  
> outer IFRAME to the current internal height, and once that happens  
> the internal height is increased again.  To prevent inifinte loops,  
> after several tries we stop resizing.

Are you sure about this? The increased height (on my example) is not  
just the height from the horizontal scrollbar? I added ~20px to iframe  
height (here:  
http://github.com/horde/horde/blob/master/imp/js/imp.js#L94) to fix  
the extra height from scrollbar and is working now.

PS: If you want something more exact than adding ~20px you can always  
calculate the scroll width:  
http://jdsharp.us/jQuery/minute/calculate-scrollbar-width.php







More information about the bugs mailing list