Author Topic: Keep visible option on UIDragObject is not working on Samsung Tab S (device)  (Read 2988 times)

notehaha

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
Hi Tasharen team,

I have searched for a topic of 'Keep visible' issue. I saw only some but not one of mine. so pls allow me to tell what I found.

I do use UIDragObject on my UIPanel. I prepared everything set includes a rect of UIWidget. Once, I run-play my game, it works correctly BUT... only when I ports apk to my SAMSUNG TAB S device, the panel which contains UIdragable object does not spring back in screen.

again. my app works fine on Game view.

my first assumption is my UIRoot setting on Maximum Height does not match my device's screen resolution (2560px) so that I had changed it. Unfortunately not a luck.

please advice what should i do


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
You can actually change the root to manual height and specify the same screen height as your device if you want to test it properly. I'm not sure what would cause this issue in your case though. Have you tried printing the values it calculates?

notehaha

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 9
    • View Profile
 :D
Once i change my UIRoot Manual height to fit my device's height. the 'keep visible' work nicely. previously i only set minimum height.

BUT !! you guys.
does it means if any game is set the Manual Height lower than user's device height. this 'keep visible' feature does not work ??

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Manual height works everywhere. It basically ignores device's height and uses a fixed value.

Minimum height is for pixel-perfect UI. If the height is below that value, it's as if you had manual height instead.