The height of the column header in table view is too small since I have upgrated to Servoy 5.1.3. On Mac OSX the hight is 1 or 2 px. On Win 7 it has some pixels more and I can read the label text, but where is the number “1” on the label header of %%currentRecordIndex%% comes from? How can I change this?
Is it a display issue or do I have a property setting for that now?
Servoy 5.1.3_962
Windows 7 64/32 bit
Mac OS X 10.6.3/10.4.x/10.5.x
java 1.6.0_18/19/20
On all this OS and java versions I get the same result.
Edit:
Do I have a table view list in a tabpanel displayed on a form in dialog, the height of the column/label header is correct.
Do you use labelfor labels to display the header ? Can you reproduce the height problem in a small form ( I tried a tableview in 5.13 but seems ok) ? About %%currentRecordIndex%%, I guess you set it on labelfor label or in the field itself (depending on which option you use).
I have edited my post at the moment you answered me.
On the table view list I don’t set the property “labelFor” for the label (not a field) %%currentRecordIndex%%! As edited in the previous post, the issue occurs only on main forms.
Ok, so you have a table of labels. Then I guess %%currentRecordIndex%% is set to text property of the label ? About the height, don’t think the main form or a tab should make a difference. Probably there is another trigger that causes this. Can you check what do you have in text property of the labels ?
I have one label on the list set property “text” to %%currentRecordIndex%%.
The “titleText” property of the fields is an i18n key for the text in the header.
All that was working on 5.1.2 and earlier versions without any issue.
tgs:
I have one label on the list set property “text” to %%currentRecordIndex%%.
The “titleText” property of the fields is an i18n key for the text in the header.
All that was working on 5.1.2 and earlier versions without any issue.
Ok, from what I understand you are having two issues. The first one is the height problem which is almost sure a bug. However I cannot reproduce it at this point. Do you have some steps in order to reproduce this issue ? Or provide a sample for it ? If so, please open a case in our support system about it. I also notice the header font is different between the main form and the tab form so there must be some difference in there between the forms. The second issue is about the text of the first header which displays the %%currentRecordIndex%% tag. Not sure which is the problem here, if you set the tag to the label text it is normal to show in the table header.
I have now a workaround to fix the header height issue.
I replace the label by a dataProvider calculation:
function cal_currentRecordIndex() {
return currentRecordIndex
}
The result is that the column header has the “normal” height on Mac + Win and there is no record number in the header.
Because this is working well, I will modify all my table view lists .
tgs:
I have now a workaround to fix the header height issue.
I replace the label by a dataProvider calculation:
function cal_currentRecordIndex() {
return currentRecordIndex
}
The result is that the column header has the “normal” height on Mac + Win and there is no record number in the header.
Because this is working well, I will modify all my table view lists .
As I said, you can open a case (with a sample or some steps to reproduce) and we’ll fix the issue.
Ok, I see what you mean now. We made a fix in 5.1.3 so that tags are displayed in table header. This is why the %%currentRecordIndex%% appears in the header now. The height problem is clearly a bug and we’ll fix it for next release. So, I think, what you need now is to put a labelfor label for your %%currentRecordIndex%% label. This way both problems will be gone.