[mythtv-commits] Ticket #9713: Fix scaling of channel icons in recorded programs screen
MythTV
noreply at mythtv.org
Thu Apr 7 21:47:01 UTC 2011
#9713: Fix scaling of channel icons in recorded programs screen
-----------------------------------------------+------------------------
Reporter: skd5aner <skd5aner@…> | Owner: kormoc
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeb | Version: 0.24-fixes
Severity: medium | Keywords:
Ticket locked: 0 |
-----------------------------------------------+------------------------
In the last few versions of MythWeb, the default recorded programs screen
leveraged a "width" attribute in the <img> tag. This caused channel icons
to scale correctly in 95% of cases where the width of the icon was larger
or close to the same size as the height. However, in cases where the
height of the channel icon was significantly larger than the width, the
icon would scale to 70px wide, but still be very tall and distort the
height of the row compared to other rows.
Simple HTML attributes in the <img> tag don't really do what we want as it
doesn't take into account max scale of width or height. Also, CSS for
max-width and max-height aren't properly reflected in IE6 and IE7. Doing
some google searching, I found a solution that should work for all modern
browsers and IE6/7.
Attached is a patch which removes HTML attribute and changes it to
leverage CSS. The patch fixes all current skins (include adding some css
files in skins missing them). The patch was made against 0.24-fixes, but
I believe it should apply cleanly to master. Tested in IE8, IE9, Chrome
10, and Firefox 4.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9713>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list