Text alignment issue in the widget
Posted: Fri Dec 13, 2013 3:21 am
The DSub widget is having some alignment issues.
Because the text is centered, it only displays the middle of the song name if the name is long:
After some time, it automatically fixes this by aligning the song name to the left:
But then if you change the song, the alignment completely breaks:
A solution to this problem would be to just align the text to the left and place a [...] if it stretches past the area. Or you could make it scroll (like iTunes) but I'm not sure if that's something that can be done easily. Alternatively, you could just copy the Play Music widget (which the official Subsonic app does).
Because the text is centered, it only displays the middle of the song name if the name is long:
After some time, it automatically fixes this by aligning the song name to the left:
But then if you change the song, the alignment completely breaks:
A solution to this problem would be to just align the text to the left and place a [...] if it stretches past the area. Or you could make it scroll (like iTunes) but I'm not sure if that's something that can be done easily. Alternatively, you could just copy the Play Music widget (which the official Subsonic app does).