2016-04-11 25 views
1

Wie kann ich den description Text im relatedContent Bereich einer compilationTemplate umbrechen?Line Wrap Beschreibungstext in einer CompilationTemplate relatedContent-Bereich in TVML

appletv

Mein description tag:

<description style="tv-text-style: none; font-size:36; font-weight:regular; word-wrap:break-word;">lorem ipsum dolor sit amet consectetur adipiscing elit</description> 

Voll Vorlage:

var Template = function() { return `<?xml version="1.0" encoding="UTF-8" ?> 
    <document> 
     <compilationTemplate theme="light"> 
      <list> 
       <relatedContent> 
        <itemBanner> 
         <heroImg src="${this.BASEURL}images/shows/bates/BRANDHD2398_AEN_BATE_168121_TVE_000_2398_60_20160303_00_S3_REV_HD_1920x1080-16x9.jpg" /> 
         <description style="tv-text-style: none; font-size:36; font-weight:regular; word-wrap:break-word;">lorem ipsum dolor sit amet consectetur adipiscing elit</description> 
        </itemBanner> 
       </relatedContent> 
       <header> 
        <title>Bates Motel</title> 
        <subtitle>Season 4</subtitle> 
       </header> 
       <section> 
        <listItemLockup> 
         <ordinal minLength="2">1</ordinal> 
         <title>A Danger to Himself and Others</title> 
         <decorationLabel>11:14</decorationLabel> 
        </listItemLockup> 
        < !-- ... -- > 
       </section> 
      </list> 
     </compilationTemplate> 
    </document>` 
} 

Die Textgröße ändert, aber die Beschreibung abschneidet stattdessen auf die nächste Zeile der Verpackung.

Antwort

3

Ändern Sie vordefinierte Beschreibung Bereich mit min-height, max-height Arten? mit tv-text-max-lines. Beispiel in https://github.com/iBaa/PlexConnectApp/blob/master/PlexConnectApp/TVMLTemplates/Fanart/Movie_PrePlay.xml, siehe class description und spätere Verwendung.

(Bearbeitet 14Apr16 basierend auf Kommentar und Doppel-Check)

+0

Vielen Dank für Ihre Antwort. So was? ' lorem ipsum dolor sit amet consectetur adipiscing elit 'Ich sehe keine Veränderung. – JAL

+0

Ja, so waren meine Gedanken - ich weiß, ich habe es früher gemacht. Lass mich mal schauen, wo/wie ... – Baa

+0

Beantwortete die Antwort. – Baa