In Views there is this 'views-row-last' class that should be assigned to the last table row. In the views module in theme.inc following code is used

$vars['row_classes'][count($vars['row_classes']) - 1][] = 'views-row-last';

The funny thing about is that the Search API (or Entity API?) keys the row classes array be the entity id, so for example you are having 20 results that includes the node with id 19, this one will get the views-row-last class (which does not necessarily mean it's the last entry).

Nevertheless I'm not sure if it can be fixed in Search API/Entity API or needs a Views patch.

Comments

drunken monkey’s picture

Project: Search API » Entity API

Didn't we have a patch once upon a time that fixed this and associated problems by keying the results "normally", with ascending integers? As I recall, there were other instances were Views had problems with unsystematic indices.

In any case, I'm pretty sure this will have to be solved in the Entity API. Or in Views, but let's be realistic here. ;)