Opened 8 years ago

Closed 8 years ago

#10004 closed Bug Report - General (Invalid)

Strange mythui inheritance problem in mythvideo

Reported by: Justin Hornsby Owned by: jpoet
Priority: trivial Milestone: unknown
Component: MythTV - User Interface Library Version: 0.24-fixes
Severity: low Keywords:
Cc: Ticket locked: no

Description

In the gallery view window using a grid layout (I'm not sure if it affects others or indeed other areas of mythtv) inheriting from an already defined buttonlist messes up the button layout regardless of what the area of the child elements is. In the following XML is an example. "nicelist" buttons are 340x40px but the video gallery grid based buttonlist buttons are 147x240px. If the videos buttonlist inherits from nicelist all the child elements are the correct size but are spaced as if they were 340px wide.

XML of the original buttonlist:

<buttonlist name="nicelist">

<area>0,63,340,430</area> <arrange>spread</arrange> <spacing>5</spacing> <!-- <align>center</align> --> <wrapstyle>items</wrapstyle> <layout>vertical</layout> <buttonarea>0,0,340,425</buttonarea> <statetype name="buttonitem">

<state name="active">

<area>0,0,340,40</area>

<shape name="buttonback" from="basebox">

<area>0,0,340,40</area>

</shape>

<textarea name="buttontext">

<area>8,4,330,36</area> <align>vcenter</align> <cutdown>yes</cutdown> <font>info</font> <alpha>255</alpha>

</textarea>

</state> <state name="selectedactive" from="active">

<shape name="buttonback" from="baseboxsel">

<area>0,0,340,40</area>

</shape> <textarea name="buttontext">

<font>infoblack</font>

</textarea>

</state> <state name="inactive" from="active">

<textarea name="buttontext">

<font>info</font> <alpha>127</alpha>

</textarea>

</state> <state name="selectedinactive" from="selectedactive" />

</statetype> <statetype name="downscrollarrow">

<position>358,360</position> <showempty>no</showempty> <state type="full">

<imagetype name="dnon">

<filename>arrows/downarrowsel.png</filename> <area>0,0,20,20</area>

</imagetype>

</state> <state type="off">

<imagetype name="dnon">

<filename>arrows/downarrowunsel.png</filename> <area>0,0,20,20</area>

</imagetype>

</state>

</statetype> <statetype name="upscrollarrow">

<position>358,0</position> <showempty>no</showempty> <state type="full">

<imagetype name="upon">

<filename>arrows/uparrowsel.png</filename> <area>0,0,20,20</area>

</imagetype>

</state> <state type="off">

<imagetype name="upon">

<filename>arrows/uparrowunsel.png</filename> <area>0,0,20,20</area>

</imagetype>

</state>

</statetype>

</buttonlist>

And the XML of the affected buttonlist:

<buttonlist name="videos" from="nicelist">

<area>5,60,1270,570</area> <layout>grid</layout><wrapstyle>items</wrapstyle> <spacing>8</spacing> <buttonarea>15,10,1250,570</buttonarea> <statetype name="buttonitem">

<state name="active">

<area>0,0,147,240</area> <shape name="buttonback">

<area>0,0,147,240</area> <fill color="#000000" alpha="127" /> <type>roundbox</type> <cornerradius>10</cornerradius>

</shape> <imagetype name="buttonimage">

<area>0,0,147,220</area> <preserveaspect>true</preserveaspect>

<filename>mv_browse_nocover_large.png</filename>

<mask>147x220mask.png</mask>

</imagetype>

..etc

Change History (2)

comment:1 Changed 8 years ago by jpoet

Owner: changed from stuartm to jpoet
Status: newaccepted

comment:2 Changed 8 years ago by jpoet

Resolution: Invalid
Status: acceptedclosed

Closing at the request of the submitter.

Note: See TracTickets for help on using tickets.