[mythtv-commits] Ticket #9295: Add stretching to textarea and a more acurate cutdown function

MythTV mythtv at cvs.mythtv.org
Sun Nov 28 02:08:55 UTC 2010

#9295: Add stretching to textarea and a more acurate cutdown function
 Reporter:  savardd@…            |            Type:  Patch - Feature 
   Status:  new                  |        Priority:  minor           
Milestone:  unknown              |       Component:  MythTV - General
  Version:  0.24                 |        Severity:  medium          
 Keywords:  textarea             |   Ticket locked:  0               
 The cutdown function doesn't seem to be accurate as it sometime cut more
 characters than needed.  The new one only cut the minimum amount of
 characters to fit in the textarea.

 Also, add a <stretch min="##" max="##">[yes|no]</stretch> tag to textarea.
 This will be used before cutting down to try to stretch the font to fit
 the textarea.  Stretching default to min=100, max=100 and not enabled.
 min and max are percentage.  Range is 1 < min <= 100 <= max < 4000.  So
 min is between 1 and 100 and max between 100 and 4000.
 Using min is to fit more text in a textarea by condensing the font a
 little bit.  Up to 80%, it is not to much distorsed.
 Using max is to expend a font to fill space in textarea.  A 'sort' of
 And, values may be inherited if needed:
 <textarea name="base">
  <stretch min="80" max="100"/>
 <textarea name="test" from"base">
 This may help to fix bugs #8188 and #8783.  Where 'schedule recording
 type' field is to narrow.  And may also help when changing language and
 the new text string is a little bit larger than the default one.  Alos,
 with the new way to cutdown text, there is more text displayed even when
 stretching is not enabled.

Ticket URL: <http://svn.mythtv.org/trac/ticket/9295>
MythTV <http://www.mythtv.org/>
MythTV Media Center

More information about the mythtv-commits mailing list