NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 116 117 118 119 120 … 433 Next »
Horizontal scrolling misalignment at the right end of the guide [PATCH]

Horizontal scrolling misalignment at the right end of the guide [PATCH]
WayneD
Offline

Junior Member

Posts: 30
Threads: 7
Joined: Sep 2015
#1
2016-09-25, 06:09 PM
When one or more shows overflow past midnight, it is possible to scroll the modern guide so far that the shows are no longer aligned with the proper header/footer timestamps. I also noticed that if a channel has a show that starts right at midnight, it would be included at the end of the listing line.

The latter bug is very easy to fix: subtract 1 second from the end-time calculation (start + 86400 - 1).

The first bug has 2 possible fixes: prevent the shows from scrolling past midnight, or pad out the header/footer to be able to scroll as much as the listings. I chose the latter fix because I think it is valuable to be able to see a show in its full length in one spot in the guide (since it's truncated at the start of the day).

In my patch I changed the time-container divs to have an overflow div at the end with a horizonal ellipsis instead of a time. If there is no overflow, that div ends up with zero width and is invisible (I tested this with a one-channel group that doesn't overflow midnight to make sure of that). I then made the listing thread return back one extra payLoad item in its array: the max width of its line. The caller uses this value to see if the time-containers are wide enough yet, and if not, it adjusts the outdiv's width and the line-ending pad-div's width to fill in the gap.

The end result is a nice scrolling experience where all 3 divs are now the same width and thus stay aligned all the way across.

The patch: http://opencoder.net/npvr-hscroll.patch
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,627
Threads: 767
Joined: Nov 2003
#2
2016-09-25, 08:27 PM
Thanks - we'll give it a go, and include.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Guide Empty brady@preheim.com 13 2,372 2022-11-16, 02:13 PM
Last Post: mvallevand
  ZAP2XML no longer loading TV Guide Schedule skoonz_sr@hotmail.com 33 19,859 2021-03-27, 06:45 AM
Last Post: Jean0987654321
  Mouse Click on TV Guide throws an error mlopez1007 2 1,385 2021-03-22, 11:33 AM
Last Post: Graham
  NPVR choosing incorrect xml guide display-name after reboot drlava 7 2,963 2020-12-27, 02:27 AM
Last Post: sub
  TV Guide Initial channel NumberFive 2 1,818 2020-07-28, 06:03 PM
Last Post: NumberFive
  4.2.5 and Mobile TV Guide NumberFive 8 2,989 2020-04-30, 08:13 PM
Last Post: NumberFive
  OTA EPG guide data only for 2 hrs acegolfer 6 3,500 2020-03-18, 08:30 PM
Last Post: mvallevand
  TV Guide edit Genre for Kodi sammy3 8 3,764 2020-03-10, 09:25 PM
Last Post: sammy3
  2020 TV Guide Doesn't Show up rmahlberg 14 9,228 2020-01-04, 06:43 PM
Last Post: sub
  changing channels in guide - stupid user question mt900spg 2 1,551 2019-12-19, 01:30 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode