Widget Positioning in G2

Yup. I thought defaultAnchors at 0,0 makes a lot of sense and I thought it would help reduce my G1 -> G2 transition pain if I simply put it at the top of my main.lua and maybe all other modules but seems like it is a poisonous fruit for now. Your bug is in the system so it should get some attention sometime.  

Ok. Coming back to this one again… All was fine until I started using transition.to in order to shift my tableView up & down (to emulate searchBar behavior in IOS mail app)… It is so confusing to have 2 different coordinate systems acting on the same widget.

In other words, I’m ok to create the tableView with top & left values adhering to 0,0 based coords. But transition.to needs me to play with the x & y values of the widget not top & left so when I give x & y these must be accurate based on the center based default coordinates… Very confusing and hard to work with.

Any possibility to have tableView fixed so it can work with the default anchors set to 0,0?

Ksan it was fixed few dailies ago :slight_smile:

Thanks for the confirmation. Maybe I have a ‘workaround’ in place thats now messing things up… Going back to code to check. 

Remove any tableview.anchors you may have added and just use top left parameters.

Even for x & y in transition.to?

See my searchBar sample thread. I’m moving the whole tableview up when SearchBar is activated (as in IOS Mail app behavior). I found a workaround (I think…) but the transition.to is a little funny but I think that might be a topic for another bug report… 

I’m not sure about transitioning. On a mobile right now, can’t check. Maybe use delta property in transition property? Then you just specify the distance it should travel and not end location.

Ahh thats a great idea. I was using y values to move the tableview up and down. I think delta will do this much better. Thanks for the tip. Keep well. 

Yup. That did the trick!!! Thanks for the tip. While the root cause issue is not resolved I think this can be captured as a Gotcha in the API docs for tableView and we can move forward. Appreciate your help.