Tag archives for issue

CakePHP Tree Behavior Ordering Issue

Today I found a simple issue with CakePHP’s Tree Behavior.

When saving a model with an empty parent_id Tree Behavior recalculates left and right node.

The consequence is to alter an existing order putting the record at the end of the list.

This problem manifests only with root items with an empty parent_id. Sub trees are safe from this issue!

Continue reading »

Posted in CakePHP, Tips & Tricks | Leave a comment

how to Scroll Top a List in Sencha Touch

Let me say I have the view named “tagFilteredView” who contain a simple list of items. Depending on the tag I want to filter my items by the list may show 3 to hundreds or results. The list is always the same.

Maybe I found a little bug in Sencha Touch UI when you perform these actions:

  1. render a List with a lot of data inside
  2. scroll down the list
  3. update the List’s Store with a small set of data that not require to scroll

In this case you are not able to see data and you are not able to scroll up the list… but there is a simple solution! Continue reading »

Posted in Tips & Tricks | 4 Comments

Swedish Greys - a WordPress theme from Nordic Themepark.