Grid style in apk differs from webapp


#1

I found a strange behavior:

Put a Header and a Grid on a form and set the cellstyle of the grid to:
border-style:solid; border-color: lightgrey; border-width: 1px;

Then add this functin (or use attached project)
Project1.nsx (15.5 KB)

Function Header1_onclick()
  Grid1.addCols(1)
  
  Grid1.setColumnWidth(0, "33%")
  Grid1.setColumnWidth(1, "33%")
  Grid1.setColumnWidth(2, "34%")
  
  For i = 0 To 4
    Grid1.cell(i,2).style = "border-style:solid; border-color: lightgrey; border-width: 1px;"
  Next i 
End Function

In a webapp on my old S3 mini it look like it should be.
But if I compile it at Phonegap the border-style of the last row is NOT set lightgrey/1px

Is it a bug or a feature?!


#2

These can be tricky to fix. The best way to do this is using the Chrome Remote Debugger.

Check the Console tab first to errors. If there is nothing there, you will need to work with the Elements tab to see what CSS is being applied to those cells.


#3

well, here looks everything fine. it seems to be not a AppStudio Problem…