Site navigation

Last Edit

Page last modified 22:47, 13 Oct 2010 by arion_p
MediaPortal Wiki > MediaPortal 1 > Contribute > Skins > Skin Related Changes > 1.1.0 to 1.2.0 > Image Alignment

Image Alignment


    • Required:  No
    • Type of Change:  Feature

    In previous versions, the image in an Image control could either be placed at the top left corner of the control rectangle, or centered in it using the <centered> tag. This was very limiting to skin designers and is not consistent with other controls (like the label control).

    Description of Change

    Two new tags have been added to the Image control:

    • tag <align> can be used to specify the horizontal alignment of the image within the control. Acceptable values are left (default), center and right.
    • tag <valign> can be used to specify the vertical alignment of the image within the control. Acceptable values are top (default), middle and bottom.

    The <centered> tag has been kept for backward compatibility and works as before but is now considered obsolete and should not be used in new designs. In future versions the tag will be removed. As a result, existing skins should switch to align/valign instead of centered as soon as possible.

    Additional Information and References

    • Mantis Issue: 0003064
    • Related xml(s):  any that use the centered tag in images
    • Window ID: 
    • Related GUI property/control: align and valign in Images.

    XML/Code Samples

      <description>Satellite image</description>

    Tags: feature, skin-related

    Running the latest version?

    V1.15.0 - released June 2016
    Releasenews | Download
    | Requirements

    MediaPortal RSS Feeds

    windows media centerNews & Blogs
    htpcP&S: New


    Contact | Press