Skip to content
Snippets Groups Projects
Commit e4887ce1 authored by 2deep4real's avatar 2deep4real
Browse files

linenumberWidth = timeWidth + delayWidth

parent c9f09261
No related branches found
No related tags found
No related merge requests found
...@@ -169,12 +169,16 @@ var resize = function(panel, config, cont) { ...@@ -169,12 +169,16 @@ var resize = function(panel, config, cont) {
lineHedH = scale * 5, // überschriften der linien lineHedH = scale * 5, // überschriften der linien
lineStpH = scale * 4, // haltestellen der linien lineStpH = scale * 4, // haltestellen der linien
infoTtlH = scale * 6, // überschriften der informationen 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 // setze linien überschriften größe
$(lineHed).css('height', lineHedH + 'px'); $(lineHed).css('height', lineHedH + 'px');
$(lineHed).css('fontSize', (lineHedH-2) + 'px'); $(lineHed).css('fontSize', (lineHedH-2) + 'px');
$(lineHed).css('lineHeight', lineHedH + 'px'); $(lineHed).css('lineHeight', lineHedH + 'px');
$(lineLin).css('width', getStringWidth((lineHedH-2), "00000")); $(lineLin).css('width', timeWidth + delayWidth);
// setze linien haltestellen größe // setze linien haltestellen größe
$(lineStp).css('height', lineStpH + 'px'); $(lineStp).css('height', lineStpH + 'px');
...@@ -182,8 +186,8 @@ var resize = function(panel, config, cont) { ...@@ -182,8 +186,8 @@ var resize = function(panel, config, cont) {
$(lineStp).css('lineHeight', lineStpH + 'px'); $(lineStp).css('lineHeight', lineStpH + 'px');
// setze zeit und delay breite // setze zeit und delay breite
$(stopTme).css('width', getStringWidth((lineStpH-2), "00:00") + 'px'); $(stopTme).css('width', timeWidth + 'px');
$(stopDly).css('width', getStringWidth((lineStpH-2), "+00") + 'px'); $(stopDly).css('width', delayWidth + 'px');
// setze info überschriften größe // setze info überschriften größe
$(infoTtl).css('height', infoTtlH + 'px'); $(infoTtl).css('height', infoTtlH + 'px');
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
position: relative; position: relative;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
text-align: right; text-align: left;
padding: 0px 5px 0px 0px; padding: 0px 5px 0px 0px;
font-weight: bold; font-weight: bold;
color: #B8860B; color: #B8860B;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment