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: | Owned by: | jpoet | |
---|---|---|---|
Priority: | minor | Milestone: | needs_triage |
Component: | MythTV - User Interface Library | Version: | 0.24 |
Severity: | medium | Keywords: | textarea |
Cc: | Ticket locked: | no |
Description
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">
<stretch>yes</stretch>
</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)
Change History (8)
Changed 13 years ago by
Attachment: | mythtv-0.24-stretching-cutdown-code.diff added |
---|
Changed 13 years ago by
Attachment: | mythtv-0.24-stretching-cutdown-theme.diff added |
---|
Mythcenter theme modification to support stretching
comment:1 Changed 13 years ago by
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
Component: | MythTV - General → MythTV - User Interface Library |
---|---|
Owner: | set to stuartm |
Status: | new → assigned |
comment:3 Changed 12 years ago by
Owner: | changed from stuartm to jpoet |
---|
comment:4 Changed 9 years ago by
Status: | assigned → accepted |
---|
comment:5 Changed 3 years ago by
Milestone: | unknown → needs_triage |
---|
Code of the stretching and cutdown patch