As everything is appearing in the same column, the grid is not output. However, we have no way of knowing if the items should be on the same line or not. Regardless of what New Row is set to, the APEX output is exactly the same.Why do you need the information if it's displayed in the same row or not? Isn't that driven by CSS? In the case of theme 25, it's my understanding that "fieldContainer" is always displayed as "block", so it will be displayed in a new line unless it's wrapped in grid column DIVs. Because of that, the grid markup isn't rendered if the grid isn't really used.
- Shouldn't the grid be output in all scenarios? Otherwise this is really inconsistent and impossible to handle.
- Item buttons should be wrapped in a label template so that theme designers have greater control over placement, alignment and spacing.Actually we want to unify region and item buttons to just buttons. We have to have a look what makes sense. Have you thought about creating an "Inline Button" button template which emits the necessary HTML markup?
So sorry for getting back to this topic so late. Here is a simpler, CSS-based approach you can use to align your item buttons directly next to any given item. You were very close in your page of examples, but were just missing one small part (floating the buttons to the left, too, so they are next to the relevant field). Please take a look at this example. In addition, I've written this post a while back on additional form fixes with Theme 25 that you may find helpful in the meantime.
Thanks so much for the detailed demo page. We will review the grid layout engine and see what changes need to be made so form layout is easier to work with than it is currently.