Opened 10 years ago

Closed 10 years ago

#7462 closed enhancement (fixed)

MythUI <textarea> auto size

Reported by: jppoet@… Owned by: stuartm
Priority: minor Milestone: 0.23
Component: MythTV - User Interface Library Version: head
Severity: medium Keywords: MythUI textarea
Cc: Ticket locked: no

Description

Adds <minsize> to <textarea>, <shape> and <imagetype>.

If <minsize> is specified in a <textarea>, the area needed for the actual text is calculated and the area of the button is adjusted. The size of the adjusted area is constrained between <minsize> and the full <area> of the <textarea>

If the text button has any shape or image siblings, the size of those siblings will be adjusted by the same amount, with the same constraints.

Attachments (3)

MythUI-MinSize.diff (18.2 KB) - added by jppoet@… 10 years ago.
MythUI textarea minsize
MythUI-MinSize-v1.1.patch (14.7 KB) - added by John Patrick Poet <jppoet@…> 10 years ago.
Updated for r22683
MythUI-SetText.patch (2.3 KB) - added by John Patrick Poet <jppoet@…> 10 years ago.
Added for review, but probably not necessary

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by jppoet@…

Attachment: MythUI-MinSize.diff added

MythUI textarea minsize

Changed 10 years ago by John Patrick Poet <jppoet@…>

Attachment: MythUI-MinSize-v1.1.patch added

Updated for r22683

Changed 10 years ago by John Patrick Poet <jppoet@…>

Attachment: MythUI-SetText.patch added

Added for review, but probably not necessary

comment:1 Changed 10 years ago by John Patrick Poet <jppoet@…>

Updated for r22683

comment:2 Changed 10 years ago by danielk

Resolution: fixed
Status: newclosed

(In [23325]) Fixes #7462. Apply min-size patch. I'm applying this to make the enhancement in #6318 look better. Stuart M has some ideas on how to improve this that John P. Poet plans to implement for 0.24, but for now this only works to make layout better in a few cases like #6318.

Note: See TracTickets for help on using tickets.