Modify

Opened 7 years ago

Last modified 3 years ago

#9295 accepted Patch - Feature

Add stretching to textarea and a more acurate cutdown function

Reported by: savardd@… Owned by: jpoet
Priority: minor Milestone: unknown
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)

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

Download all attachments as: .zip

Change History (6)

Changed 7 years ago by savardd@…

Code of the stretching and cutdown patch

Changed 7 years ago by savardd@…

Mythcenter theme modification to support stretching

comment:1 Changed 7 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 7 years ago by knight

  • Component changed from MythTV - General to MythTV - User Interface Library
  • Owner set to stuartm
  • Status changed from new to assigned

comment:3 Changed 6 years ago by jpoet

  • Owner changed from stuartm to jpoet

comment:4 Changed 3 years ago by jpoet

  • Status changed from assigned to accepted

Add Comment

Modify Ticket

Action
as accepted The owner will remain jpoet.
Author


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

 
Note: See TracTickets for help on using tickets.