Forum Discussion

raxitpandya's avatar
raxitpandya
Binge Watcher
2 years ago

In TimeGrid View, i want to hide the clock.

Scenario :

  1. When timegrid load first time, clock is not getting displayed.
  2. But when i navigate to other view like search view and grid view.
  3. And when i come back to timegrid view, clock is getting displayed on top right of the timegrid view.
    Like below image
     

I thought it is overhang tag so i tried below way to hide this.

overhang = m.top.findNode("Overhang")
       overhangChildren = overhang.getChildren(-1, 0)
       for each child in overhangChildren
           ?"Overhang Child", child
           if child.subtype() = "Clock" then
               child.showClock = false
               'm.overhang.removeChild(child)
           end if
       next
 

but no luck. Can anyone suggest any way to hide this clock in timegrid view.

3 Replies

  • RokuKC's avatar
    RokuKC
    Roku Employee

    The image clip you provided doesn't show enough context for me to understand what you're seeing personally. 

    Perhaps you could include a full screen capture, in lower resolution if necessary, to give a more complete idea?

    From looking at

    https://developer.roku.com/docs/references/scenegraph/list-and-grid-nodes/timegrid.md

    while I don't know if that exactly reflects current Roku OS UI, I would expect that showing column time labels is completely expected. 

    That is different from a 'clock' however that would show the current time minute by minute as in the Scene overhang.

    • raxitpandya's avatar
      raxitpandya
      Binge Watcher



      Please refer above image.

      First time when i am in time grid, clock is not visible. But when i navigate to grid view and come back to timegrid view it's automatically shows up. I have tried various ways. Those are as below.

      1. I have commented out the <overhang> tag in TimeGridView.xml file.

      2. I have make the attribute visible=false and showClock= false in <overhang> tag in TimeGridView.xml file.

      3. I have also tried below code

      ```
      overhangChildren
      = m.overhang.getChildren(-1, 0)
      for each child in overhangChildren
      ?"Overhang Child", child
      if child.subtype() = "Clock" then
      m.overhang.removeChild(child)
      end if
      next
       

      ```
      4. Also set showClock= false in gridView.

      Still not able to hide the clock in TimeGrid View so i have asked this question here.

      Thank you.

      • chaklasiyanikun's avatar
        chaklasiyanikun
        Roku Guru

        RokuKC I was facing a similar issue earlier, but I have not found any proper solution for this clock. It's coming randomly at the top right corner of any SGDEX View. Maybe the Roku Team better explained why this clock displays with SGDEX View. There is a Default clock over there. I printed all overhang tag displays in view but have not found this clock in any node.