Opened 13 years ago

Closed 17 months ago

#9295 closed Patch - Feature (Trac EOL)

Add stretching to textarea and a more acurate cutdown function

Reported by: savardd@… Owned by: jpoet
Priority: minor Milestone: needs_triage
Component: MythTV - User Interface Library Version: 0.24
Severity: medium Keywords: textarea
Cc: Ticket locked: no


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 justification. And, values may be inherited if needed: <textarea name="base">

<stretch min="80" max="100"/>

</textarea> <textarea name="test" from"base">


</textarea> 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.

Attachments (2)

mythtv-0.24-stretching-cutdown-code.diff (6.6 KB) - added by savardd@… 13 years ago.
Code of the stretching and cutdown patch
mythtv-0.24-stretching-cutdown-theme.diff (7.0 KB) - added by savardd@… 13 years ago.
Mythcenter theme modification to support stretching

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by savardd@…

Code of the stretching and cutdown patch

Changed 13 years ago by savardd@…

Mythcenter theme modification to support stretching

comment:1 Changed 13 years ago by savardd@…

It may also fix bug #9184. Theme: MythCenter?: too smals buttons in schedule ui. Because I had the same problem, I developed this patch.

comment:2 Changed 13 years ago by Nicolas Riendeau

Component: MythTV - GeneralMythTV - User Interface Library
Owner: set to stuartm
Status: newassigned

comment:3 Changed 12 years ago by jpoet

Owner: changed from stuartm to jpoet

comment:4 Changed 9 years ago by jpoet

Status: assignedaccepted

comment:5 Changed 3 years ago by Stuart Auchterlonie

Milestone: unknownneeds_triage

comment:6 Changed 17 months ago by Stuart Auchterlonie

Resolution: Trac EOL
Status: acceptedclosed

We have moved all bug tracking to github [1]

If you continue to have this issue, please open a new issue at github, referencing this ticket.

[1] -

Note: See TracTickets for help on using tickets.