Using Xibo’s cloud option, which recently upgraded to 2.3. Since that time text in the DataSet View is no longer centered. Been searching around online and trying various experiments with the CSS, however no luck. Anyone have the same issue and a solution? CSS below:
I’ve had a go at breaking a DataSet View in 2.3 and i’m having trouble - its always a full width table and centered.
There will have been some CMS javascript changes moving to 2.3, so there is a chance it might be a cache issue. Can you try CTRL+F5 in the Layout designer to see if that solves?
If not an export of your Layout would be useful and a screenshot of what it looks like.
Don’t believe it’s a cache issue. CRTL+F5 does not solve it either. What part of the export do you want a screenshot of? I’ve included a screen shot of the contents of the zip files for now.
Apologies, I mean can you send me the export (you can use transfer.xibo.org.uk and PM me the link) and can I have a screenshot of the incorrect output (in the designer).
Done. Also I just recreated the layout (which is pretty simple one), it stayed centered as expected right up until I changed the cache value from 5 to 60. Changed it to 60, clicked save and the text became left aligned. Changing the cache value back (or to any other number) has no effect; it all remains left aligned.
Okay, now removing my advanced filter causes text to be center aligned. Add the advanced filter back seems to cause them to be left aligned. Seems odd, but something is going on with the advanced filter that is effecting text alignment in the table cells.
It took a little working out, but for me the centred bit is the “No Data Message” and the actual results are left aligned.
The DataSet View is really intended for tabular data, which is inherently hard to centre - the DataSet Ticker might be more appropriate for your use case here?
Ticker is not what I need in this case (do use it on another layout). Remove the advanced SQL filter and it returns to centered. This layout is only needed every Monday, so if it can’t be fixed I can always manually update the dataset; not using the advanced filter. I could also just leave it as is, but I think that will bother the graphic designer in me.
So essentially its due to how the cycle plugin (which moves between pages) interacts with a HTML table. There may be a CSS fix for it, but its beyond me, we’d need to wait for @maurofmf to take a look at it.
You can always remove the “number of records per page” to disable the cycle plugin which should leave it centred all the time.
I’m currently reconsidering the ticker for this; per your suggestion. I think continual movement when I read “ticker”, but that’s not the case here. It should work.
OK sure - let us know how it goes. We could probably do with some options on the DataSet View which renders it more in a template than a table (which is what the Ticker does).
I agree its confusing to have what is essentially static content in the Ticker.