[mythtv-commits] mythtv/master commit: 507708616 by John Patrick Poet (jpoet)
MythTV
noreply at mythtv.org
Sat Jul 23 20:43:49 UTC 2011
Author: John Patrick Poet <jpoet at mythtv.org>
Change Date: 2011-07-23T13:37:46-07:00
Push Date: 2011/07/23 13:43:30 -0700
Repository: mythtv
Branch: master
New Revision: 50770861637411a2a1e1818bdc6e9c1ff25878cf
Changeset: https://github.com/MythTV/mythtv/commit/507708616
Log:
MythUI: Allow relative offsets within an <area>
Allow area's to be specified with relative offsets based on a percentage
within the parents area. For example, to define a 40x20 area in the lower
right corner:
<area>100%-40, 100%-20, 40, 20</area>
or
<area>100%-40, 100%-20, 100%, 100%</area>
To position arrows on the left edge, but vertically centered, you might want to do something like:
<!-- top arrow -->
<position>0, 50%-10</area>
<!-- bottom arrow -->
<position>0, 50%</area>
Modified:
mythtv/libs/libmythui/mythrect.cpp
mythtv/libs/libmythui/mythrect.h
mythtv/libs/libmythui/mythuitype.cpp
More information about the mythtv-commits
mailing list