diff --git a/panels/departure/script.js b/panels/departure/script.js index 167826aa2785c75dcf75b18214921287c50a5350..0fa0ae667e1675f49251fc56edb20de9f159641d 100755 --- a/panels/departure/script.js +++ b/panels/departure/script.js @@ -169,12 +169,16 @@ var resize = function(panel, config, cont) { lineHedH = scale * 5, // überschriften der linien lineStpH = scale * 4, // haltestellen der linien infoTtlH = scale * 6, // überschriften der informationen - infoMsgH = scale * 5; // die eigentliche nachricht der information + infoMsgH = scale * 5, // die eigentliche nachricht der information + // berechne string breite + timeWidth = getStringWidth((lineStpH-2), "00:00"), + delayWidth = getStringWidth((lineStpH-2), "+00"); + // setze linien überschriften größe $(lineHed).css('height', lineHedH + 'px'); $(lineHed).css('fontSize', (lineHedH-2) + 'px'); $(lineHed).css('lineHeight', lineHedH + 'px'); - $(lineLin).css('width', getStringWidth((lineHedH-2), "00000")); + $(lineLin).css('width', timeWidth + delayWidth); // setze linien haltestellen größe $(lineStp).css('height', lineStpH + 'px'); @@ -182,8 +186,8 @@ var resize = function(panel, config, cont) { $(lineStp).css('lineHeight', lineStpH + 'px'); // setze zeit und delay breite - $(stopTme).css('width', getStringWidth((lineStpH-2), "00:00") + 'px'); - $(stopDly).css('width', getStringWidth((lineStpH-2), "+00") + 'px'); + $(stopTme).css('width', timeWidth + 'px'); + $(stopDly).css('width', delayWidth + 'px'); // setze info überschriften größe $(infoTtl).css('height', infoTtlH + 'px'); diff --git a/panels/departure/style.less b/panels/departure/style.less index 690ddae3c47e1288093e58762cfca59fd5ebe70c..c4a59b41a3f70eb0d75babb0732dcbc65a61a2ad 100755 --- a/panels/departure/style.less +++ b/panels/departure/style.less @@ -71,7 +71,7 @@ position: relative; height: 100%; overflow: hidden; - text-align: right; + text-align: left; padding: 0px 5px 0px 0px; font-weight: bold; color: #B8860B;